[gtkada] Centring multiline text in labels

Dmitry A. Kazakov mailbox at dmitry-kazakov.de
Wed Jun 3 09:26:52 CEST 2009


On Wed, 3 Jun 2009 09:17:25 +0800, you wrote:

> Is it possible to align to  cente the text in a label, e.g. on a button,
> when the label has more than one line?  I have a button created thus:
> 
>       -- Create Big_Button.
>       Gtk.Button.Gtk_New (Button => The_Gadget.Big_Button,
>                           Label  => ("  BIG"
>                                      & Ada.Characters.Latin_1.CR
>                                      & "BUTTON"));
> 
> Can I get the text properly centred?

Set_Justify

-- 
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de



More information about the gtkada mailing list