Hide

SftButton/OCX 3.0 - Button Control

Display
Print

Accelerator Keys

The Text property defines the control's caption. The caption can include an accelerator key. By using the & character in the Text property, the following character becomes an accelerator key. If the user types Alt plus the defined accelerator key, the control receives the input focus and the Click event occurs.

For example, if the Text property is set to "&Help", the displayed caption will read "Help", i.e., the H is underlined. If the user types Alt+h, the Click event occurs. To display an & character use "&&".

If the AllowFocus property is set to False, the control does not support accelerator keys. The & character is displayed as-is.


Last Updated 08/13/2020 - (email)
© 2024 Softel vdm, Inc.