Text Box I Directive




You can turn a standard text box control into a Xbasic Interactive Window using the %I% formatting code. You should define column and row dimensions for the text box that are large enough to display a reasonable size code editor. Here is an example dialog with an embedded code editor.


Code = ""
Result = ui_dlg_box("Script",<<%dlg%
Type in some Xbasic code, then click OK to execute the code.;
<*15&OK> <15&Cancel>;
if result = "&OK" then
end if

This script produces this dialog:

See Also