Xbasic
{NOCAPTION}
Syntax
{NOCAPTION}
Description
The {NOCAPTION} command suppresses the title bar of a dialog box. [Picture]
You should put a close button on any dialog box that has no caption.
Example
files = <<%str% apples.txt oranges.txt %str% ui_dlg_box("Position",<<%dlg% [%P=files%.40file] | <&Files!files>; | <\>\>>; | ; %dlg%,<<%code% if a_dlg_button = "files" then a_dlg_button = "" ui_modeless_dlg_box("Files",<<%dlg% {position=dropdown} {nocaption} {close_on_leave} {on_key=enter} [.40,20file^#files!file_*] %dlg%,<<%code1% if a_dlg_button = "enter" .or. a_dlg_button = "file_dblclick" .or. a_dlg_button = "" then a_dlg_button = "" ui_modeless_dlg_close("Files") end if %code1%) else if a_dlg_button = ">>" then a_dlg_button = "" ui_dlg_box("Files",<<%dlg% {position=expandright} [.40,20file^#files] %dlg%) else if a_dlg_button = "sticky" then a_dlg_button = "" ui_dlg_box("Sticky",<<%dlg% {position=relative,remember=sticky_window} {size=remember=sticky_window} This is a sticky dialog | ; {stretch=center} [.30,10dummy] %dlg%) end if %code%)
Limitations
Desktop applications only
See Also