|Navigation: Language Reference > App B - Events > Field-Independent Events >====== EVENT:GainFocus ======|
The window is gaining input focus from another thread. This is the event on which you restore any data you saved in EVENT:LoseFocus. The system is modal during this event.
EVENT:GainFocus is not generated until EVENT:LoseFocus is processed (if focus was
on another window of the same program).