guides:programming:programmers_reference_manual:endedit_method_propertygrid

ENDEDIT method (PropertyGrid)

If the current item is being edited this method causes the item editor to be closed, optionally updating the property item with its contents.

EditorOpen = Exec_Method( CtrlEntID, "ENDEDIT", UpdateItem )

NameRequiredDescription
UpdateItemNoIf TRUE$ the item will be updated with the contents of the editor before it is closed.

TRUE$ if the item was being edited.

N/A

 
$Insert PS_Property_Grid_Equates

   $Insert Logical

   

   CtrlEntID = @Window : ".PRG_MAIN"

   

   // Set the full list of items...   

   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_PGIT_BUTTON$$ : @Vm : ""

   

   Call Set_Property_Only( CtrlEntID, "LISTX", Pgl )

   // ... use the property grid ...

      

   // and close the editor manually, updating the item

   Call Exec_Method( CtrlEntID, "ENDEDIT", TRUE$ )
 
 
 

BEGINEDIT method, EDITORHANDLE property.

  • guides/programming/programmers_reference_manual/endedit_method_propertygrid.txt
  • Last modified: 2023/10/25 10:49
  • by 127.0.0.1