oi10:presentation_server:screensizebyname_method_propertygrid

SCREENSIZEBYNAME method (PropertyGrid)

Returns the SIZE in screen coordinates of the named property item.

itemSize = Exec_Method( ctrlEntID,          

                           "SCREENSIZEBYNAME", 

                           Name )
NameRequiredDescription
nameYesName of a property item in the "visible" list

The @fm SIZE array of the specified property item in screen coordinates.

None.

 
$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 size of the "Color" item

   ItemSize  = Exec_Method( CtrlEntID, "SCREENSIZEBYNAME", "Color" )

   

   // Get the width ...

   ItemWidth = ItemSize<3>
 
 
 
  • oi10/presentation_server/screensizebyname_method_propertygrid.txt
  • Last modified: 2023/10/25 10:49
  • by 127.0.0.1