RAD Studio VCL Reference
|
AddVerb adds a verb to the object's list of supported verbs.
procedure AddVerb(Verb: Integer; const VerbName: string);
__fastcall AddVerb(int Verb, const AnsiString VerbName);
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 |
Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
|
What do you think about this topic? Send feedback!
|