ButtonMenuTextID property (Main Control)

Visual Basic example
Visual C++ 4.0 example

Syntax short ButtonMenuTextID (short iButtonIndex, short iToolIndex);

Overview:  Refer to Annotation Toolbar.

Remarks

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

Elements:  AutoSetTool property, ButtonBitmapDown property, ButtonBitmapDown property, ButtonColumns property,ButtonCount property, ButtonMenuText property, ButtonMenuTool property, ButtonRows property, ButtonTool property, ButtonToolCount property, ButtonToolTipText property, ButtonToolTipTextID property, ButtonVisible property, Create method, hWnd property, Tool property, Visible property

Topics:  Annotations (Document/Medical only): Automation