guides:oi10:presentation_server:selposx_property_propertygrid

SELPOSX property (PropertyGrid)

Specifies the position of the currently selected property item in the Property Grid. The position is based on the fully expanded list of properties.

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.

DevelopmentRuntimeIndexedScaledSynthetic
N/AGet/SetNoNoNo

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.

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

N/A

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