[Python] addPanel/attachLabel Problems

macsbug

Chieftain
Joined
Oct 31, 2005
Messages
75
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?
 
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. :)
 
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 :)
 
Top Bottom