Forces a window into the foregroundΒΆ

set_foreground_window()

Forces a window into the foreground

Version >= 6.0.5


SYNTAX

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.

window_id

This must be a window in the current dialog.

options

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


RELATED TOPICS

setfocus command