[gtkada] some questions...

Arnaud Charlet charlet at ACT-Europe.FR
Wed Aug 1 14:22:36 CEST 2001


> >1.-What kind of data is enums.gtk_justification ?? i'm trying to use the
> >gtk.label.set_justify function, and don't know how
> 
> It doesn't work. It's a bug that I've reported and hope gets
> fixed some time.

I am not sure what bug you are referring to here, but since there's a lot
of confusion on what Set_Justify does, I'd suggest that people wanting to use
Set_Justify look at its definition in the GtkAda RM:

<<
   procedure Set_Justify
     (Label : access Gtk_Label_Record;
      Jtype : Enums.Gtk_Justification);
   --  Set the justification for the label.
   --  The default value is Justify_Center, which means that the text will be
   --  centered in the label. Note that this setting has an impact only when
   --  the Gtk_Label is larger than the text (its default width is the same
   --  as the text) and contains multiple lines.
   --  To justify a single line label, you should instead change the properties
   --  of the container handling the label (box, table, ...).
>>

Which might explain things.

Arno




More information about the gtkada mailing list