RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
IComponentEditor.ExecuteVerb Method

Performs the action of a specified verb.

Pascal
procedure ExecuteVerb(Index: Integer);
C++
__fastcall ExecuteVerb(int Index);

The form designer calls ExecuteVerb when the user selects the verb that is returned by GetVerb(Index). This verb is the string that appears in the corresponding position of the component's context menu. 

Implement GetVerb to provide a set of verbs, or menu strings, that are added to the context menu which appears when the user right-clicks the component. Implement ExecuteVerb to provide a response to each of these verbs. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!