Label.setUseMnemonic

Overview | Methods | This Package | All Packages

Label.setUseMnemonic

Sets a value indicating whether the label interprets an ampersand character in the label's text to be an access key prefix character.

Syntax

public final void setUseMnemonic( boolean useMnemonic )

Parameters

useMnemonic

Set to true if the label removes the ampersand character and underlines the character after the ampersand in its displayed text and treats the underlined character as an access key; set to false if the label displays any ampersand characters included in its text. The default value is true.

Remarks

If the useMnemonic property is set to true and a mnemonic character (a character preceded by the ampersand) is defined in the label text, pressing ALT+ the mnemonic character sets the focus to the control that follows the label in the tab order. Use the setText property to set the text for the label.

See Also   getUseMnemonic