ButtonMenuTextID property (ILEADRasterAnnToolBar)
short ButtonMenuTextID (short iButtonIndex, short iToolIndex); | |
Overview |
Refer to Annotation Toolbar. |
Remarks
Contains an index into the annotation menu dialog strings (ANN_AUTOTEXT_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 ANN_AUTOTEXT_MENU_PROTRACTOR, then the text associated with the second menu item of the button at the position (iButtonIndex = 2) of the annotation toolbar will be "&Protractor …". Therefore, when the user clicks the button at the position (iButtonIndex = 2) 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