Forces a window into the foregroundΒΆ


Forces a window into the foreground

Version >= 6.0.5


set_foreground_window(window_id, options)

Forces the specified window into the foreground. Use on return from an executed program to force this program to have the input focus. Normally the user should be allowed to control which program has focus. Use this function only after calling an integrated sub-program, for example a spell checker, when it would destroy continuity if the focus moved to another application. After calling set_foreground_window(), the setfocus command can be used to define which control has focus.


This must be a window in the current dialog.


Normally code as 0. Can be set to 0x01 to activate the last child window.


setfocus command