mnemonic

Specifies which character of a button name can be used with the Alt key to trigger the button.

# Metadata

Platforms: desktop, server, mobile OS: windows, ios, android Introduced: 1.0 Security:

# Syntax

set the mnemonic of button to number

# Examples

set the mnemonic of button "Avant!" to 1 -- uses the first letter, A

# Description

Use the mnemonic property to provide a keyboard substitute for clicking a button on Windows.

The mnemonic is any number between 1 and the number of characters in the button name. The character at that position is underlined, and pressing the Alt key with that character sends a mouseUp message to the button. If the number is zero, the button does not have an Alt key equivalent.

This property has no effect on Mac OS or Unix systems.

# Tags

ui,

# See

- **keyword:** character, characters, button, integer - **property:** acceleratorText - **message:** mouseUp - **object:** button - **glossary:** property, Windows, trigger, Alt key