oi10:presentation_server:valuebyname_method_propertygrid

VALUEBYNAME method (PropertyGrid)

Returns the value of the named property item.

itemValue = Exec_Method( ctrlEntID,     

                            "VALUEBYNAME", 

                            name,

                            newValue )
 
NameRequiredDescription
nameYesName of a property item
newValueNoNew value for the property

Current value of the specified property item.

The value depends on the type of the property item. If the property item has a type of PGIT_COLOR$ then the returned data will be an RGB color value, if the property item has a type of PGIT_EDIT$ then the value will be a string, and so on.

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

   

   // Hide all "Data" items...

   Call Exec_Method( CtrlEntID, "COLLAPSE", "Data" )

   

   // Get the value of the "Color" item

   ItemVal  = Exec_Method( CtrlEntID, "VALUEBYNAME", "Color" )
 
 
 
  • oi10/presentation_server/valuebyname_method_propertygrid.txt
  • Last modified: 2023/10/25 10:49
  • by 127.0.0.1