Table of Contents

ENDEDIT method (PropertyGrid)

Description

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

Syntax

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

Parameters

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

Returns

TRUE$ if the item was being edited.

Remarks

N/A

Example

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

See Also

BEGINEDIT method, EDITORHANDLE property.