[Gambas-user] Aligning text in a text area

Benoit Minisini gambas at ...1...
Tue Jul 15 22:26:32 CEST 2008


On mardi 15 juillet 2008, M0E Lnx wrote:
> Well, I'm using a text area to display a text file. ( a copy of the
> GPL to be exact) and in my form, the text area is just as wide as the
> form itself... leaving of couse about 8 pixels on either side for a
> nice border effect.
>
> But the text shows up as left-aligned... I'd like to make it look
> center-aligned if possible.
>

If you don't need to edit the text, do not use a TextArea, but a TextLabel or 
a read-only TextEdit (if you use gb.qt).

Regards,

-- 
Benoit Minisini




More information about the User mailing list