mnemonic

Typeproperty
DictionaryLCS
LibraryLiveCode Script
Syntax
set the mnemonic of <button> to <number>
Associationsbutton
Summary

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

Introduced1.0
OSwindows, ios, android
Platformsdesktop, server, mobile
Example
set the mnemonic of button "Avant!" to 1 -- uses the first letter, A
Values
NameTypeDescription
Value

The mnemonic of a button is a positive integer. Zero indicates that there is no shortcut provided. By default, the mnemonic property of newly created buttons is set to zero.

RelatedKeyword: character, characters, button, integer
Property: acceleratorText
Message: mouseUp
Object: button
Glossary: property, Windows, trigger, Alt key
Description

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

The mnemonic is any number between 1 and the number of characters in the button's 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.

Tagsui