RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
Menus.ValidMenuHotkeys Variable

Determines what accelerator keys can be automatically assigned to a menu item caption.

Pascal
ValidMenuHotkeys: string = '1234567890ABCDEFGHIJKLMNOPQRSTUVWXYZ';
C++
AnsiString ValidMenuHotkeys = '1234567890ABCDEFGHIJKLMNOPQRSTUVWXYZ';

ValidMenuHotkeys is used to limit the characters that a menu considers when automatically assigning accelerator keys to menu items. This variable is used at runtime when the AutoHotkeys property is true or when an application calls RethinkHotkeys. 

By default, ValidMenuHotkeys limits accelerator keys to alphanumeric values (digits and letters). Change this variable to redefine the keys that can be used when assigning accelerator keys automatically. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!