Valutazione attuale: 0 / 5

Stella inattivaStella inattivaStella inattivaStella inattivaStella inattiva
 

hb_SetKeyCheck()

Implements common hot-key activation code
Syntax
hb_SetKeyCheck( <nKey> [, <p1> ][, <p2> ][, <p3> ] )
Argument(s)
<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
Example(s)
// 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
Status
Ready
Compliance
This is Harbour specific
File(s)
Library is core
See also

SetKey(), hb_SetKeySave()