|
|
|
|
|
- Focus gain
- ScreenFirst, SetFocus and SetFocusAndReturnToUserInput
- SetFocus on the last selected control
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)
Sintaxis
Setting the focus on a control in the current window or page Ocultar los detalles
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.
Observaciones 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.).
Please note Not all field types (e.g. "label" fields) can take focus. 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.
Clasificación Lógica de negocio / UI: Código UI
Esta página también está disponible para…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|