w3-tools.com - Free Webmaster Tools and Resources
 
w3-tools.com - Free Webmaster Tools and Resources
 Free Webmaster Tools and Resources

 



PHP-GTK Manual

This manual is provided as a courtesy. It is not an official source. Please check gtk.php.net for updated information.

PHP-GTK Manual

PHP-GTK Manual

GtkLabel

Widget that displays a small amount of text.

Object Hierarchy

GtkObject
`-- GtkWidget
       `-- GtkMisc
              `-- GtkLabel

Direct subclasses

Description

A very common use of GtkLabel is to display text that describes or makes some comment about the use of an adjacent widget. If you need to display a great deal of text, use GtkText instead.

Note that labels do not generate events. If you want to catch events (e.g. from a mouse click) you will need to put the label in a GtkEventBox.

See also: GtkEditable, GtkEventBox, GtkText.

Constructor

GtkLabel ([string label_text ]);
-- Creates a new label with the given text inside it. If no text is specified, an empty label is created.

Methods

set_text()
  Sets the label text.
set_justify()
  Sets label justification.
set_pattern()
  Underlines text in the label.
set_line_wrap()
  Toggles line wrapping.
get()
  Gets label text. *deprecated in GTK2*
parse_uline()
  Parses underscores into underlines. *deprecated in GTK2*

Newsletter

Join to our newsletter and receive news and updates about our site.
Your name: 
E-mail address: 
Action: 
 

Hosted by

Search

Google
Web w3-tools.com

Links

  What is my IP? Find your IP address!     Valid XHTML 1.0 Transitional  
Copyright © 2006. by w3-tools.com. All rights reserved