ButtonMenuTextID property (TAnnMenu)
Builder Syntax |
int ButtonMenuTextID [int iButtonIndex][int iToolIndex] |
Delphi Syntax |
ButtonMenuTextID [iButtonIndex: Integer; iToolIndex: Integer]: Integer |
Overview |
Refer to Annotation Toolbar |
Remarks
(Document/Medical only) Contains an index into the annotation menu dialog strings (ANNAUTOTEXT_XXX). If this value is -1, the text for the tool tip is in the ButtonMenuText property. If this value is >= 0, this value is an index into the set of annotation menu dialog strings and the tool tip text will come from here.
The index stored in this property associates the corresponding menu text with the specified menu item of the specified menu button. For example, if ButtonMenuTextID[2, 1) contains the value ANNAUTOTEXT_MENU_PROTRACTOR, then the text associated with the second menu item of the third button of the annotation toolbar will be "&Protractor …". Therefore, when the user clicks on the third button of the annotation toolbar, a menu will be displayed. The second menu item will display Protractor.
Please note that a character following an ampersand will be underlined.
The ButtonMenuXXX properties are only used for buttons that are associated with multiple tools.
For a list of the available dialog strings, refer to Annotation Automation Strings.
See Also