Web hosting and cheap domain register services
  

 Home

GTK Classes
Prev GtkAccelLabel Next

GtkAccelLabel

A label that can display an accelerator key next to the text.

Object Hierarchy

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

Description

A GtkAccelLabel is a label capable of displaying any accelerator, modifier keys and signal set on a GtkMenuItem or similar widget.

In PHP-GTK this is effectively an internal widget, as an accelerator label is created the moment a text string is passed to a menu item. It is therefore unlikely that you will ever need to use the constructor, or any of the methods that this class directly provides. However, you may need to access it, for instance to parse an underline in a label's text string or to retrieve a menu's textual content.

To access the GtkAccelLabel within an existing menu item, use the following code:

You will then be able to call most of the methods available to a new instance of a GtkAccelLabel.

Constructor

GtkAccelLabel (string string);

-- Constructs a label for displaying accelerator information.

Methods

get_accel_width()
  Sets width to accommodate accelerator information.
set_accel_widget()
  Associates accelerator label with specified widget.
refetch()
  Recreates accelerator information.


Prev Home Next
GtkAccelGroup::unlock Up GtkAccelLabel Constructor

 

  

Network sites:

Active-Domain.com: cheap domain register and domain name registration

Cheap domains registration and domain transfer with free domain hosting 

 
 
Quotes:
"He who is in love with himself has at least this advantage -- he won't encounter many rivals."  
 
 

Disclaimer: This documentation is provided only for the benefits of our webhosting customers.
For authoritative source of the documentation, please refer to http://gtk.php.net/docs.php