Focus and activation events, common to most widgets since they are declared on tactionwidget
Source position: msewidgets.pas line 1036
published property tactionpublishedwidgetnwr.onenter : notifyeventty; |
Focus and activation events, common to most widgets since they are declared on tactionwidget: onenter fires when input focus goes to the widget or a child; onexit when it leaves the widget (and all its children); onfocus only when the widget itself gets input focus; ondefocus when it loses it; onactivate/ ondeactivate when the widget or a child is activated/deactivated; onfocusedwidgetchanged (on teventwidget, tmseform and tgroupbox) whenever the widget or a child gets or loses input focus. teventwidget publishes most internal events and can be used to build a custom widget without writing a new class.
On a focus change, onenter fires first (bottom-up from the common ancestor to the new focus), then onfocus on the new focus itself, then onactivate (only while the window is the active one). On the widget losing focus, ondefocus fires first, then ondeactivate and onexit (bottom-up through its ancestors up to the common ancestor).