Vcl.AxCtrls.TActiveXControlFactory.AddVerb
Delphi
procedure AddVerb(Verb: Integer; const VerbName: string);
C++
void __fastcall AddVerb(int Verb, const System::UnicodeString VerbName);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
public | Vcl.AxCtrls.pas Vcl.AxCtrls.hpp |
Vcl.AxCtrls | TActiveXControlFactory |
Description
AddVerb adds a verb to the object's list of supported verbs.
Use AddVerb to add a verb that host applications can apply to the ActiveX control. In the Verb parameter, pass a number to identify the verb. User-defined verbs are normally small positive numbers.
In the VerbName parameter, pass the text to display when presenting the user with a choice of verbs. In some ActiveX (formerly called OLE) containers, the verb text is displayed in a popup menu when the user right-clicks on a control.
Placing an ampersand (&) before a character in this string causes the character to be displayed underlined in a pop-up menu.
ActiveX defines the following commonly used verbs:
VerbName | Verb |
---|---|
OLEIVERB_PRIMARY |
0 |
OLEIVERB_SHOW |
–1 |
OLEIVERB_OPEN |
–2 |
OLEIVERB_HIDE |
–3 |
OLEIVERB_UIACTIVATE |
–4 |
OLEIVERB_INPLACEACTIVATE |
–5 |
OLEIVERB_DISCARDUNDOSTATE |
–6 |
OLEIVERB_PROPERTIES |
–7 |