onGotFocus
Event fired when a component gains focus.
Parameters
none
Property of
Form and all form components that get focus
Description
onGotFocus fires whenever the form or component gains focus.
The firing order for Events when opening a form:
The form's open( ) method is called
The when event for each control is fired according to the z-order
The form's onOpen event is fired
The onOpen event for each control is fired according to the z-order
The firing order for Form object Events:
Clicking on a form object will result in the following events firing in this order;
The when event
The onGotFocus event
A mouse event such as, onLeftDblClick
Navigating to a form object by using the Tab key will result in the following events firing in this order;
The when event
The onGotFocus event
Tip: ON KEY LABEL TAB <command> will perform an action (<command>) when the user presses the TAB key (See ON KEY). However, even though ON KEY LABEL TAB is set to perform <command>, pressing Shift-Tab will still move to another form object (the preceding one in the z-order) and fire it's events in the above order.