DROPDOWN method (PropertyGrid)
Description
If the current item is a combo-box type this method forces it to display the dropdown list. If the current item has an options button this method triggers the PROPOPTIONS event instead.
Syntax
bDroppedDown = Exec_Method( ctrlEntID, "DROPDOWN" )
Parameters
N/A
Returns
TRUE$ if the current item was a combo-box or button type, FALSE$ otherwise.
Remarks
If the current item is not a combo-box or button type this method has no effect.
Example
$Insert PS_Property_Grid_Equates $Insert Logical CtrlEntID = @Window : ".PRG_MAIN" // Set the full list of items... Pgl = "Data" : @Vm : "Title" : @Vm : PS_PGI_EDIT$ : @Vm : "Yadda" Pgl<-1> = "Data" : @Vm : "SubTitle" : @Vm : PS_PGI_EDIT$ : @Vm : "Whatever" Pgl<-1> = "UI" : @Vm : "Visible" : @Vm : PS_PGI_CHECK$ : @Vm : TRUE$ Pgl<-1> = "UI" : @Vm : "Color" : @Vm : PS_PGIT_BUTTON$ : @Vm : "" Call Set_Property_Only( CtrlEntID, "LISTX", Pgl ) // Select the button item in the list (this will select "Color") Call Set_Property_Only( CtrlEntID, "SELPOS", 4 ) // Fire the PROPOPTIONS event for the current item (“Color”) Call Exec_Method( CtrlEntID, "DROPDOWN" )
See Also
N/A