DesignIntf.IComponentEditor.GetVerb

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function GetVerb(Index: Integer): string;

C++

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

Properties

Type Visibility Source Unit Parent
function public
DesignIntf.pas
DesignIntf.hpp
DesignIntf IComponentEditor

Description

Returns the string that corresponds to a 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 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.

See Also