guides:programming:programmers_reference_manual:activated_event

ACTIVATED event

Occurs when a window or control on a window gets focus. Activating an MDI child also activates the frame

bforward = ACTIVATED(ctrlentID, ctrlclassID)

ACTIVATED 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. The window control type is the only valid entry.

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

GOTFOCUS and INACTIVATED events

Instead of using the GOTFOCUS and LOSTFOCUS for a window, use ACTIVATED and INACTIVATED. GOTFOCUS and LOSTFOCUS usually only happen once for a window, immediately after creation.

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