SELPOS property (PropertyGrid)
Description
Specifies the position of the currently selected property item in the Property Grid. The position is based on only "visible" non-collapsed items.
Property Value
The position of the currently selected item, ranging from 1 to the total number of non-collapsed items, or null if no property item is selected.
Property Traits
Development | Runtime | Indexed | Scaled | Synthetic |
---|---|---|---|---|
N/A | Get/Set | No | No | No |
Remarks
Items belonging to collapsed (hidden) categories are not included. To reference an item in the fully expanded property list use the SELPOSX property instead.
Categories are not considered to be items and are ignored for the purposes of calculating the SELPOS property.
Example
$Insert PS_Property_Grid_Equates $Insert Logical CtrlEntID = @Window : ".PRG_MAIN" // Set the full list of items... // // Data // Title - Yadda // SubTitle - Whatever // UI // Visible - TRUE$ // Color - 0xFF (red) 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_PGI_COLORDLG$ : @Vm : 0xFF Call Set_Property_Only( CtrlEntID, "LISTX", Pgl ) // Select the second item in the list (this will select "SubTitle") Call Set_Property_Only( CtrlEntID, "SELPOS", 2 ) // Collapse the "Data" category Call Exec_Method( CtrlEntID, "COLLAPSE", "Data" ) // Select the second item in the list (this will select "Color") Call Set_Property_Only( CtrlEntID, "SELPOS", 2 )
See Also
N/A