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


search for in the  


previousGtkEntryCompletion
GtkEntryCompletion::completenext

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

GtkEntryCompletion Constructor

Creates a new GtkEntryCompletion object.

Example 60. A GtkEntryCompletion Sample.

<?php
$window = new GtkWindow;
 
// creates the GtkEntry widget
$entry = new GtkEntry();
 
// creates the data model
$store = new GtkListStore(Gtk::TYPE_STRING);
 
// add values to the model
$store->append(array('Aland'));
$store->append(array('Albern'));
$store->append(array('Alcott'));
 
// creates the EntryCompletion object
$completion = new GtkEntryCompletion;
 
// sets the model
$completion->set_model($store);
 
// defines teh data column
$completion->set_text_column(0);
 
// defines the completion for the GtkEntry
$entry->set_completion($completion);
 
// show all
$window->add($entry);
$window->show_all();
Gtk::Main();
?>

User Contributed Notes
gtk.gtkentrycompletion.constructor.php
add a note about notes
There are no user contributed notes for this page.


previousGtkEntryCompletion
GtkEntryCompletion::completenext

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:57 2013 CEST