A Gtk_Label is a light widget associated with some text you want to display on the screen. You can change the text dynamically if needed.
The text can be on multiple lines if you separate each line with the ASCII.LF character. However, this is not the recommended way to display long texts (see the Gtk_Text widget instead)
Widget Hierarchy |
---|
Gtk_Object (see section Package Gtk.Object) \___ Gtk_Widget (see section Package Gtk.Widget) \___ Gtk_Misc (see section Package Gtk.Misc) \___ Gtk_Label (see section Package Gtk.Label) |
Subprograms |
---|
procedure Gtk_New (Label : out Gtk_Label; Str : in String := ""); | ||
Create a new label. | ||
function Get_Type return Gtk.Gtk_Type; | ||
Return the internal value associated with a Gtk_Label.
| ||
procedure Set_Text (Label : access Gtk_Label_Record; Str : in String); | ||
Change the text of the label. | ||
procedure Set_Justify (Label : access Gtk_Label_Record; Jtype : in Enums.Gtk_Justification); | ||
Set the justification for the label. | ||
procedure Set_Pattern (Label : access Gtk_Label_Record; Pattern : in String); | ||
Change the underlines pattern. | ||
procedure Set_Line_Wrap (Label : access Gtk_Label_Record; Wrap : in Boolean); | ||
Toggle line wrapping within Label. | ||
function Get (Label : access Gtk_Label_Record) return String; | ||
Get the current value of the text displayed in the label.
| ||
procedure Parse_Uline (Label : access Gtk_Label_Record; Text : in String); | ||
Create both the text and the underscore pattern from a single string.
Note: as opposed to the C version, this subprogram does not return the
accelerator keyval associated with the last character underlined. This
feature is only used internally by gtk+ to create menus, and is not
useful for end-users.
|