Code: Select all win.lblSummary = win.pnlSummary.add("statictext",undefined, "");
win.lblSummary.multiline = true;
win.lblSummary.preferredSize[300,500];
win.lblSummary.text = "Something\nSomething2\nSomething3"
I've also tried as a text box, and that doesn't multiline either. ??
Ugh - Why doesn't this give a multiline label?
Ugh - Why doesn't this give a multiline label?
I have only had luck by defining the creation properties as part of the add arguments.
Code: Select all win.lblSummary = win.pnlSummary.add("statictext",undefined, "",{multiline:true});
And you need to assign the preferredSize
Code: Select allwin.lblSummary.preferredSize = [300,500];
Code: Select all win.lblSummary = win.pnlSummary.add("statictext",undefined, "",{multiline:true});
And you need to assign the preferredSize
Code: Select allwin.lblSummary.preferredSize = [300,500];
Ugh - Why doesn't this give a multiline label?
huh - where did that '=' go?? Thanks for spotting that. I did try specifying multiline at creation - but maybe the bad size specification was hampering my experiments - will give it another go.