[prev in list] [next in list] [prev in thread] [next in thread] 

List:       php-gtk-general
Subject:    Re: [PHP-GTK] GtkTreeview and interactive search for PHP-GTK v2.0
From:       kksou <kksou () kksou ! com>
Date:       2008-06-03 7:03:23
Message-ID: 17617252.post () talk ! nabble ! com
[Download RAW message or body]


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.


-- 
PHP-GTK General Mailing List (http://gtk.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic