VLButtonBar Reference

Read/Write Property UseMnemonic

See Also See Also Applies To Applies To

Returns or sets a value that specifies whether an ampersand (&) included in the text of the Caption property of the  Button defines an access key.

 

Syntax

object.UseMnemonic[= boolean]

 

The UseMnemonic property syntax has these parts:

Part Description
Object An object expression that evaluates to an object present in the Applies to List.
boolean A Boolean expression specifying whether the  Button enables an access key, as described in Settings.

Setting

The settings for Value are:

Setting Description
Constant False (Default) Any ampersand appearing in the text of the Caption property is displayed as an ampersand in the interface of the Button.
Constant True Any ampersand appearing in the text of the Caption property causes the character following the ampersand to become an access key. The ampersand itself isn't displayed in the interface of the Button.

 

Remarks

At run-time, pressing ALT+ the access key defined in the button's Caption property selects the button.