Re: [PHP-GTK] GtkTreeview and interactive search for PHP-GTK v2.0

[email protected] (kksou) Tue, 3 Jun 2008 00:03:23 -0700 (PDT)
Newsgroups php.gtk.general
Message-ID <[email protected]>
Hi Benjamin,

Just a little suggestion. In your code, you have used:

protected $timeout_handler_delay = 3000;
$this->timeout_handler_id = 
Gtk::timeout_add($this->timeout_handler_delay, array($this, 
'stop_interactive_search'));

Imagine a user typing slowly. At the end of 3 seconds, the search box will
automatically hide, even though he is still typing halfway.

So you might want to change the code slightly so that each mouse or button
activity in the search field will reset the start time of inactivity.

Here's a sample code for your reference:
http://www.kksou.com/php-gtk2/articles/setup-interactive-search-in-GtkTreeView-for-PHP-GTK-v2.0---Part-4---automatically-hide-after-3-seconds.php

Regards,
/kksou

-- 
View this message in context: http://www.nabble.com/GtkTreeview-and-interactive-search-tp16314609p17617252.html
Sent from the Php - GTK - General mailing list archive at Nabble.com.