• Artigos
  • Projetos
  • Download
  • Lista
  • Docs
  • Comunidade
  • ?

GtkComboBox Construtor
Anterior GtkComboBox Construtor Próximo

GtkComboBox Construtor

GtkComboBox::new_text ();

The new_text function is a convenience function that constructs a new text combo box, which is a GtkComboBox just displaying strings. If you use this function to create a text combo box, you should only manipulate its data source with the following convenience methods: append_text() , prepend_text() , insert_text() and remove_text()

Exemplo 47. Creating a Text GtkComboBox

<?php
// Create a new window.
$window = new GtkWindow();

// Set the window up to close cleanly.
$window->connect_simple('destroy', array('Gtk', 'main_quit'));

// Create a text combobox.
$combo = GtkComboBox::new_text();

// Add some values.
$combo->append_text('New Jersey');
$combo->append_text('New Mexico');
$combo->append_text('New York');

// Add the combobox to the window.
$window->add($combo);

// Show the window and its contents.
$window->show_all();

// Start the main loop.
Gtk::main();
?>

Este método deve ser chamado estaticamente.


Anterior Início Próximo
GtkComboBox Construtor Acima GtkComboBox::append_text

Comentários

 Adicionar Comentário
 login
 senha
 Texto

Livros


Outros

Busque conteúdo no site
Participe de nosso grupo no google

[Página do grupo]  [Arquivo do grupo]

    Paleta

    Google

    Parceiros

 
Designed by Wolfgang Bartelme Designed by Wolfgang Bartelme

© 2006 Wordpress Themes | Theme (Not so) Fresh
XHTML CSS RSS