RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
IComponentEditor.GetVerb Method

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

Pascal
function GetVerb(Index: Integer): string;
C++
__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 implementing GetVerb, add an ampersand (&) to a verb to 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!