Re: Re: GTK+ Tooltip and clist rows

From: Date: Mon, 06 Feb 2006 14:12:49 +0000
Subject: Re: Re: GTK+ Tooltip and clist rows
References: 1 2 3  Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-6657@lists.php.net to get a copy of this message
Hi Scott, Yes the pseudo tooltip appear immediately at this time with no delay, but until now there's no speed problem. But that's in my mind to get it delayed so will give a try to your way of doing that. Concerning the addition to the wiki that's in my mind too, but i'm still working on this extended clist, at this time the code posted here have a little evolved and now you can also have tooltip for certain cells too, i will make some test in the way you propose too and then will post it to the snippet section of the wiki. kind regards, nathan 2006/2/6, Scott Mattocks <scott@crisscott.com>: > Hi Nathan, > > This is an interesting solution, thanks. I haven't given it a try yet, > but it looks to me like the tool tip will appear the instant the user > moves the mouse over the row. That could slow things down a little when > the user just moves the mouse across the list to get to the menu. Is > that what happens or am I missing something. That behavior also isn't > consistent with other tool tips. They normally have a delay before they > are shown. You might want to try something like this to get a more > realistic tool tip feel: > > $this->connect_object('enter-notify-event', array(&$this, > '_startTTDelay')); > $this->connect_object('leave-notify-event', array(&$this, > '_stopTTDelay')); > > function _startTTDelay() > { > $this->timeoutId = Gtk::timeout_add(1000, array(&$this, > '_show_row_tooltip')); > } > > function _stopTTDelay() > { > Gtk::timeout_remove($this->timeoutId); > } > > Also, when you get a chance, can you post your code to the wiki? > > Thanks, > Scott > > -- > PHP-GTK General Mailing List (http://gtk.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > >

« previous php.gtk.general (#6657) next »