
Indicates that a key has been pressed.
Each control that throws this event has its handler that takes this generic form:
Copy Code |
|---|
(defun c:FormName_ControlName_OnKeyDown (sChar [as String] nRepeatCount [as Integer] nFlags [as Integer] /) ) |
BlockList, ListView, PictureBox, SlideView, TextBox.
Copy Code |
|---|
; React to the key being pressed
(princ c:MyForm_MyControl_OnKeyDown
(sChar nRepeatCount nFlags /)
(princ "OnKeyDown(")
(princ sChar)
(princ ",")
(princ nRepeatCount)
(princ ", ")
(princ nFlags)
(princ ")\n")
) |