Thanks for the response.
I have the show much later in the dialog building.
As I see this, it will write the text not in the title bar but in the
normal area of the dialog. How do I change background color around the
statictext and also hide the just the title bar? Not hide the border.
RONC
IMO the title always exists.
The third question
var scriptName = "YourScriptName";
var scriptVersion = "0.01";
var dlg = new Window('dialog');
dlg.graphics.backgroundColor = dlg.graphics.newBrush (dlg.graphics.BrushType.SOLID_COLOR, [1, 0, 0], 0);
dlg.alignment = "center";
dlgTxt = dlg.add("statictext", undefined, scriptName + ' ' + scriptVersion);
dlgTxt.graphics.font = "Verdana:40";
dlgTxt2 = dlg.add("statictext", undefined, scriptName + ' ' + scriptVersion);
dlgTxt2.graphics.font = "Arial-Bold:40";
dlg.show ();
Have fun
