guides:programming:programmers_reference_manual:enabledroplist

ENABLEDROPLIST Property

Combo Box controls.

A boolean property to allow simple combo box drop target controls to register their list component as a drop target.

The control needs to have the ENABLEDROP property set to true to enable this property.

dropList = Get_Property(objectname,"ENABLEDROPLIST")

dropList = Set_Property(objectname,"ENABLEDROPLIST", bValue)

Values passed in Set_Property():

ValueDescription
bValueBoolean true (1) or false (0)

Values returned by Get_Property and Set_Property

ValueDescription
statethe Boolean status of the control’s drop list ability.
existingStatethe Boolean status of the control’s drop list ability, when Set_Property was run.
Declare function Get_Property, Set_Property

 

* retrieve the ENABLEDROPLIST property of the LIST_1 control and if true set to false and vice versa.

 

lstCtrl = @window:".LIST_1"

 

dList = Get_Property(lstCtrl,'ENABLEDROPLIST')

if dList then newList = 0 else newList = 1

dList = Set_Property(lstCtrl,'ENABLEDROPLIST',newList)
 
 
 
 
 
 
 
 
  • guides/programming/programmers_reference_manual/enabledroplist.txt
  • Last modified: 2024/06/19 20:20
  • by 127.0.0.1