Creates a menu shortcut for a specified key combination.
function ShortCut(Key: Word; Shift: TShiftState): TShortCut;
TShortCut ShortCut(Word Key, TShiftState Shift);
Menus
Call ShortCut to create a menu shortcut at runtime.
Specify a Key value using a virtual key code (Menus version) or Qt key code (QMenus version).
Specify the values for the Shift, Control, and Alt keys by using a set of type TShiftState. For example, to specify the Shift key, use the set [ssShift]. To specify a Shift and Ctrl key combination, use the set [ssShift, ssCtrl].
Assign the value returned by ShortCut as the value of the ShortCut property of a menu item.
Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
|
What do you think about this topic? Send feedback!
|