Project

General

Profile

Previous Up Next

_CBwinKeydown
Define a callback on key-down event. The scancode depends on the keyboard : it will be recalled on the key-up event. The value is the ascii code for usual characters, and following table gives the others codes.
Pause0xFF13
Scroll_Lock0xFF14
Delete0xFFFF
Home0xFF50
Left0xFF51
Up0xFF52
Right0xFF53
Down0xFF54
Prior0xFF55
Next0xFF56
End0xFF57
Insert0xFF63
Num_Lock0xFF7F
F10xFFBE
F20xFFBF
F30xFFC0
F40xFFC1
F50xFFC2
F60xFFC3
F70xFFC4
F80xFFC5
F90xFFC6
F100xFFC7
F110xFFC8
F120xFFC9
F130xFFCA
F140xFFCB
F150xFFCC
F160xFFCD
Caps_Lock0xFFE5


ObjWin _CBwinKeydown (
ObjWin _win_
fun [ObjWin u0 I I] u1 _callback_
u0 _user_
)
Parameters

_win_
any window
_callback_
callback on keydown event (supplemental parameters are scancode -- specific to the keyboard -- and value, which is the ascii code for usual keys)
_user_
user parameter
Return value

same window