Xbasic
UI_MODELESS_DLG_SETFOCUS Function
Syntax
V UI_MODELESS_DLG_SETFOCUS(C title)
Arguments
- title
The title of the dialog.
Description
Sets focus to the named modeless dialog box.
Discussion
The UI_MODELESS_DLG_SETFOCUS() function sets focus to a modeless dialog box, displaying it if necessary.
Example
This example is in two parts. Part one starts up a modeless Xdialog.
ui_modeless_dlg_box("Basic Modeless Dialog", <<%dlg%
{xmargin=10}
{ymargin=2}
<20,2Hide!Hide><20,2Close!Close>
%dlg%, <<%code%
if a_dlg_button = "Close" then
ui_modeless_dlg_close("Basic Modeless Dialog")
end if
if a_dlg_button="Hide"
ui_dlg_hide("Basic Modeless Dialog")
end if
%code%)Part two runs as a separate script. It re-displays and sets focus to the Xdialog started above after it has been hidden (when you press the 'Hide' button).
ui_modeless_dlg_setfocus("Basic Modeless Dialog")See Also