View Full Version : [Python] addPanel/attachLabel Problems


macsbug
Aug 25, 2007, 02:13 PM
I'm having some problems using addPanel/attachLabel. When bScrollable is set to false in addPanel all of the text added with attachLabel is all left-aligned. As soon as I set bScrollable to true, all the text added with attachLabel is centered. Is there any way to keep text added with attachLabel left-aligned when bScrollable is set to true?

Jeckel
Aug 25, 2007, 04:55 PM
Why it does that I don't know, but the best way around it is not to use attachlabel. Instead use setLabel or setText. Most of the standard civ screens attach everything to the background and don't bother nesting panel widgets inside each other. :)

macsbug
Aug 25, 2007, 11:52 PM
Why it does that I don't know, but the best way around it is not to use attachlabel. Instead use setLabel or setText. Most of the standard civ screens attach everything to the background and don't bother nesting panel widgets inside each other. :)

Thanks for the information - I took a look at those two, and although they would have worked I stumbled upon attachMultilineText, which seems to function exactly as I needed it to :)