SELPOSX property (PropertyGrid)
Description
Specifies the position of the currently selected property item in the Property Grid. The position is based on the fully expanded list of properties.
Property Value
The position of the currently selected item, ranging from 1 to the total number of items. If no property is selected or the referenced property is hidden then null is returned for the Get operation.
Property Traits
Development | Runtime | Indexed | Scaled | Synthetic |
---|---|---|---|---|
N/A | Get/Set | No | No | No |
Remarks
Categories are not considered to be items and are ignored for the purposes of calculating the SELPOSX property.
If item specified is not currently visible then the Property Grid is expanded to show.
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, "LIST", Pgl ) // Select the second item in the list (this will select "SubTitle") Call Set_Property_Only( CtrlEntID, "SELPOSX", 2 ) // Collapse the "Data" category Call Exec_Method( CtrlEntID, "COLLAPSE", "Data" ) // Select the second item in the full list - this will select "SubTitle" // _and_ expand the Data category to show it. Call Set_Property_Only( CtrlEntID, "SELPOSX", 2 )
See Also
N/A