| **Navigation:**  [[introduction.htm|Language Reference]] > App B - Events > Field-Independent Events >====== EVENT:GainFocus ====== | [[event doresize.htm|{{btn_prev_n.gif|Previous page}}]][[introduction.htm|{{btn_home_n.gif|Return to chapter overview}}]][[event iconize.htm|{{btn_next_n.gif|Next page}}]] | | || {{newc7.jpg|NewC7.jpg}} The window is gaining input focus from another thread. This is the event on which you restore any data you saved in [[event losefocus.htm|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).