bOk = MTblDefineButtonHotkey( hWndTbl, nKey, bControl, bShift, bAlt )

Defines the hotkey for (M!Table-) buttons.
When the hotkey is pressed in a cell that has a button, MTM_BtnClick is posted to the table.

Parameters
hWndTbl
Window Handle: Handle of the table.

nKey
Number: The virtual key code. You can use the VK_ constants from Visual Toolchest (vtcomm.apl). 0 means no hotkey.

bControl
Boolean: When TRUE, MTM_BtnClick is posted only when the <Ctrl> key is pressed in addition to nKey

bShift
Boolean: When TRUE, MTM_BtnClick is posted only when the <Shift> key is pressed in addition to nKey

bAlt
Boolean: When TRUE, MTM_BtnClick is posted only when the <Alt> key is pressed in addition to nKey

Return
Boolean: TRUE if successful or FALSE if an error occurs

Example
In this example the hotkey <Ctrl> + <Alt> + <B> is defined:

Call MTblDefineButtonHotkey( hWndTbl, VK_B, TRUE, FALSE, TRUE )

See also
Buttons

Created with the Personal Edition of HelpNDoc: Produce Kindle eBooks easily