PHP-GTK
Thursday, July 24, 2014 
download | documentation | applications | faq | changelog | resources 


search for in the  


previousGtkLabel::set_text
GtkLabel::set_use_markupnext

Last updated: Sun, 12 May 2013
view this page in English

GtkLabel::set_text_with_mnemonic

Sets the label's text from the string str. If characters in str are preceded by an underscore, they are underlined indicating that they represent a keyboard accelerator called a mnemonic.

The mnemonic key can be used to activate another widget, chosen automatically, or explicitly using set_mnemonic_widget() .

Example 93. Setting the Text of a GtkLabel with a Mnemonic

<?php
// Create a window to hold the label.
$window = new GtkWindow();
 
// Set up the window to close cleanly.
$window->connect_simple('destroy', array('Gtk', 'main_quit'));
 
// Create a label.
$label = new GtkLabel();
 
// Set the mnemonic text. Note this could be done on construction. It is done
// this way for purposes of the example only. 
$label->set_text_with_mnemonic('_Example Label');
 
// Add the label to the window.
$window->add($label);
 
// Show the window and start the main loop.
$window->show_all();
Gtk::main();
?>

See also: set_text()


User Contributed Notes
gtk.gtklabel.method.set_text_with_mnemonic.php
add a note about notes
There are no user contributed notes for this page.


previousGtkLabel::set_text
GtkLabel::set_use_markupnext

Last updated: Sun, 12 May 2013
view this page in English


credits 

PHP  Copyright © 2001-2014 The PHP Group
 All rights reserved.
Last updated: Sun May 12 20:50:59 2013 CEST