ButtonMenuTextID property (ILEADRasterAnnToolBar)

Visual Basic example

Visual C++ 5.0 example

Delphi 4 example

C++ Builder example

 

Syntax

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

Elements

AnnGetFillModeExt method, AnnSetFillModeExt method, AnnFillMode property, AnnAlpha property, AnnSetOptions method, AnnGetOptions method, AnnSetTextOptions method, AnnGetTextOptions method, AnnShowText property, AnnShowBorder property, AnnTextColor property, AnnAutoSnapCursor property, AnnTextEdit method, AnnShowRotateHandles property, AnnGetRotateOptions method, AnnSetRotateOptions method, AnnCalibrateRuler method, 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, ParenthWnd property, Tool property, Visible property

Topics

Annotations (Document/Medical only): Automation