Description

Occurs when focus shifts to the control.

Syntax

bforward = GOTFOCUS (ctrlentID, ctrlclassID, PrevFocusID)

Parameters

GOTFOCUS 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:
 
TypeDescription
CHECKBOXCheck box.
COMBOBOXCombo box.
EDITBOXEdit box.
EDITFIELDEdit line.
EDITTABLEEdit table.
LISTBOXList box.
PUSHBUTTONPush-button.
RADIOBUTTONRadio button.
WINDOWWindow.
PrevFocusIDThe previous value of the GOTFOCUS_CONTROL property.

Returns

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

See also

LOSTFOCUSACTIVATEDINACTIVATED events, FOCUS property

Remarks

Set_Property(ctrlentID, 'FOCUS') does not execute this event while Set_Property ('SYSTEM', 'FOCUS', ctrlentID) does.

  • No labels