Setting Keyboard Focus
- Last UpdatedOct 26, 2022
- 1 minute read
The keyboard focus defines which gadget will receive keystrokes. The FORM object has as one of its properties the name of the gadget which will initially have the keyboard focus. This default keyboard focus can be changed by setting the keyboardfocus member of the form:
!!MyForm.keyboardfocus = !!Myform.gadget
The keyboard focus can be moved at any time to one of the following types of gadget by calling the setfocus() method on the target gadget:
-
TEXT
-
TEXTPANE
-
BUTTON
-
TOGGLE
-
RTOGGLE
-
SLIDER
-
LIST
-
SELECTOR
-
OPTION
-
ALPHA VIEW
For example:
!!MyForm.Textfield.Setfocus()