RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TComponentEditor.GetVerb Method

Returns the string that corresponds to the specified position of the component's context menu.

Pascal
function GetVerb(Index: Integer): string; virtual;
C++
virtual __fastcall AnsiString GetVerb(int Index);

The form designer calls GetVerb iteratively to build the context menu that appears when the user right-clicks the component. 

When overriding GetVerb, adding an ampersand (&) to a verb will cause the following character to appear underlined in the context menu and to act as a shortcut key for selecting the menu item. Be sure to add ellipsis (...) to the end of a verb if its corresponding action is to bring up a dialog. 

 

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