DesignEditors.TComponentEditor.GetVerb

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function GetVerb(Index: Integer): string; virtual;

C++

virtual System::UnicodeString __fastcall GetVerb(int Index);

Properties

Type Visibility Source Unit Parent
function public
DesignEditors.pas
DesignEditors.hpp
DesignEditors TComponentEditor

Description

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

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.

See Also