|
|
|
|
|
- Focus gain
- ScreenFirst, SetFocus and SetFocusAndReturnToUserInput
- SetFocus on a Table control column
- SetFocus on the current control
- SetFocus on the last selected control
- Processes executed when SetFocus is called
SetFocus (Function) In french: DonneFocus Set focus: - to a control (in a window, in a page or in a frameset).
- a window.
// Set focus on the EDT_Edit1 control SetFocus(EDT_Edit1)
// Set focus on the EDT_Edit1 control in // the "Registration" page or window SetFocus(Registration.EDT_Edit1)
// Set focus on MyControl // found in the LOOP_Customer Looper control. // Select the second row LOOP_Customer = 2 SetFocus(LOOP_Customer.MyControl)
Syntax
Setting the focus on a control in the current window or page Hide the details
SetFocus([<Control name>])
<Control name>: Optional control name Name of control (or column) that will gain focus (see "Remarks"). If this parameter is not specified, the current control gains focus. A WLanguage error occurs if <Control name> does not correspond to a control found in the current window or in the current page.
Remarks Focus gain Taking "focus" is represented in different ways: - Blinking cursor (or "Caret") for the edit controls.
- Dotted rectangle for the other types of controls (Buttons, List Boxes, Radio Buttons, etc.).
Caution: Not all field types can take focus ("label" type fields, for example). ScreenFirst, SetFocus and SetFocusAndReturnToUserInput These functions have a different behavior: - SetFocusAndReturnToUserInput stops the current process to force the input in the specified control.
- ScreenFirst defines which control will receive input focus (when the current code stops and input focus is set back to a control).
- SetFocus stops the current process, defines which control will receive input focus and resumes the current process.
Business / UI classification: UI Code
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|