guides:programming:programmers_reference_manual:char_event

CHAR event

Occurs when a character is entered.

bforward = CHAR(ctrlentID, ctrlclassID, virtcode, scancode, ctrl, shift, alt)

CHAR accepts arguments for the following parameters.

ParameterDescription
CtrlentIDHas the format WindowName.ControlName, where WindowName is the identifier of the window that contains the affected control, and ControlName is the identifier of the control. Notice that a period separates the two values.
ctrlclassIDThe type of control that recognizes the event. Valid entries are:

Type - Description
COMBOBOX - Combo box.
EDITBOX - Edit box.
EDITFIELD - Edit line.
EDITTABLE - Edit table.
LISTBOX - List box.
virtcodeVirtual-key code (refer to Windows 3.1 SDK, WM_CHAR message, for more information).
scancodeScan code (refer to Windows 3.1 SDK, WM_CHAR message, for more information).
ctrlTrue (1), if the ctrl key is pressed. False (0), if the ctrl key is not pressed.
shiftTrue (1), if the shift key is pressed. False (0), if the shift key is not pressed.
altTrue (1), if the alt key is pressed. False (0), if the alt key is not pressed.

True or false. If false, the program execution returns to the calling procedure. If true, the event processing goes to the next level.

Not all keystrokes generate a CHAR event. To execute an event for keys which do not generate the CHAR event, create menu items with the desired accelerators.

Note: For forms that should not have menus, like dialogs, the menu items can be hidden and the accelerators will still work.

  • guides/programming/programmers_reference_manual/char_event.txt
  • Last modified: 2024/06/19 20:20
  • by 127.0.0.1