Table of Contents

COPY method (PropertyGrid)

Description

If the current property item is being edited this method copies selected text to the clipboard.

Syntax

bCopied = Exec_Method( ctrlEntID, "COPY" )

Parameters

N/A

Returns

TRUE$ if the text was being edited, FALSE$ otherwise.

Remarks

This method only works on enabled property items with the PS_PGIT_EDIT$, PS_PGIT_EDITBUTTON$, or PS_PGIT_EDITCOMBO$ styles.

Example

 
$Insert PS_Property_Grid_Equates

   $Insert Logical

   

   CtrlEntID = @Window : ".PRG_MAIN"

   

   If Get_Property( CtrlEntID, "EDITORHANDLE" ) Then

      // A property is being edited

      Call Exec_Method( CtrlEntID, "COPY" )

   End
 
 
 

See Also

EDITORHANDLE property, CUT method, PASTE method, SELECTALL method, UNDO method