I'm looking for some help using the uiText item.
From the help topics, I can easily add the item to a GUI for single lines of text.
If I make to small adjustments to the example code as follows:
Command ex_uitext {fragname, widgetname, instance}
Alias T "ex_uitext"
If (exist(fragname))
GOTO *fragname;
Else
void = uiToolCreate(T)
MainWin = uiWindow(T, {name = "MainWin",
title = "PGUI Text Example", type = "panel", visibility = 1,
height = 250, width = 500, xr = 250, yr = 50})
void = uiText(MainWin, {name = "TF", flags = "
m",
varname="text1",
text = "Text Field", readonly = 0, xmath = "DoText",
height =
80, width = 450, xr = 25, yr = 50})
void = uiButton(MainWin, {type = "button", name = "PBE",
text = "Exit", xmath = "DoExit",
height = 30, width = 50, xr = 225, yr = 190})
Return;
endIf
<DoText>
display sprintf("Gui CB: MSC args are CB = %s, widget = %s, instance = %d",
fragname, widgetname, instance);
Return;
<DoExit>
void = uiDestroy(T);
Return;
endCommand
This open a GUI which allows me to enter multiple lines of code,
however, I cannot get it to "return" or "accept" the updates. If I use
the enter/return key it simply gives me a new line.
After entering 4 lines of text, how to I get it to return this and update the varname?
[running v7.1.5 on W2K]
Regards,
Brian