HB_SetKeyCheck()
Implements common hot-key activation code
Syntax
HB_SetKeyCheck( <nKey> [, <p1> ][, <p2> ][, <p3> ] )
Arguments
<nKey> is a numeric key value to be tested code-block, if executed
<p1>..<p3> are optional parameters that will be passed to the code-block
Returns
True if there is a hot-key associated with <nKey> and it was executed; otherwise False If there is a hot-key association (before checking any condition): – if there is a condition-block, it is passed one parameter – <nKey> – when the hot-key code-block is called, it is passed 1 to 4 parameters, depending on the parameters passed to HB_SetKeyCheck(). Any parameters so passed are directly passed to the code-block, with an additional parameter being <nKey>
Description
HB_SetKeyCheck() is intended as a common interface to the SetKey() functionality for such functions as ACHOICE(), DBEDIT(), MEMOEDIT(), ACCEPT, INPUT, READ, and WAIT
Examples
// within ReadModal() IF HB_SetKeyCheck( K_ALT_X, GetActive() ) ... // some other processing ENDIF // within TBrowse handler CASE HB_SetKeyCheck( nInkey, oTBrowse ) RETURN CASE nInKey == K_ESC ... // some other processing
Tests
None definable
Compliance
Harbour
Files
Library is rtl
Seealso
SETKEY(), HB_SETKEYSAVE()
Pingback: Harbour All Functions – H | Viva Clipper !
Pingback: Harbour Set Functions | Viva Clipper !
Pingback: Harbour RG Summary | Viva Clipper !