oi10:presentation_server:selpos_property_propertygrid

SELPOS property (PropertyGrid)

Specifies the position of the currently selected property item in the Property Grid. The position is based on only "visible" non-collapsed items.

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.

DevelopmentRuntimeIndexedScaledSynthetic
N/AGet/SetNoNoNo

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.

 
$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 )
 
 
 

N/A

  • oi10/presentation_server/selpos_property_propertygrid.txt
  • Last modified: 2023/10/25 10:49
  • by 127.0.0.1