object.UseMnemonic as Integer
If this property is set to True, an ampersand (&) within the control's caption will signal that the character following the ampersand will be underlined (to highlight the mnemonic keystroke). To invoke the mnemonic, you simply hold down the ALT key and press the letter/digit which is underlined. The ampersand itself will not be displayed. To display a literal ampersand character, use "&&" within the caption text. If this property is set to False, no special treatment of the ampersand character is performed, and the caption will display normally.
Labels and Frames are considered "static" controls, so if you hit the ALT+mnemonic key for either of these controls, Newlook searches through the tab-order for the next control after the static one which has a tab-stop and puts the focus there. Normally you define labels, etc. prior to an entry field, so hitting the mnemonic in the label will cause Newlook to move the input focus into the entry field.
All other control types are effectively buttons, so hitting the mnemonic on one of these will simulate a mouse click. The input focus will first move to the button and then the button's state will be toggled if appropriate (ie. radio button or checkbox). An OnClick event will be generated in all cases.
By default the "UseMnemonic" property is set to False for all control types (except for Command buttons, which are set to True).
Command button control | Check box control | Frame control | Label control | Menu button control | Option button control
© 2004-2021 looksoftware. All rights reserved.