Torbjorn,
Hope you enjoy your vacations. I looked into it and you are right the uiText does not respond to the linefeed character ("n). I found that it is necessary to have both a return and a linefeed. There isn't a special character for the return character instead you would use char(13). So a two line string would become:
"Line one"+char(13)+char(10)+"Line two"
Here is an example that you can try:
Command twoline {fragname, widgetname, instance}
alias T "twoline"
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"
,
readonly = 0, height = 80, width = 450, xr = 25, yr = 50})
uisetvalue(T,"TF",{text="Two"+char(13)+char(10)+"line"});
void = uiButton(MainWin, {type = "button", name = "PBE",
text = "Exit", xmath = "DoExit",
height = 30, width = 50, xr = 225, yr = 190})
return;
endIf
void = uiDestroy(T);
return;
endCommand