Re: detect typing end on GtkEntry
| From: | David Palomares | Date: | Sun, 20 Apr 2003 14:42:05 +0000 |
| Subject: | Re: detect typing end on GtkEntry | ||
| References: | 1 2 3 4 | Groups: | php.gtk.general |
| Request: | Send a blank email to php-gtk-general+get-3250@lists.php.net to get a copy of this message | ||
Hi Steph
Steph wrote:
Now, i'm thinking two ways to get around... maybe if the order is done by the GtkCList, it were done more efficiently... or i may cache a select with all the rows and when the user types show only a subset of the select... it may hit the memory but i think responsiveness is crucial... What do you think about? Well, at least i'm going to learn a lot :) Thanks :) -- ------------------------------------------------------------------------ C/ Isabel de Farnesio Nº 20 – Local 4 || C.P. 28660 – Boadilla del Monte (Madrid) Teléfono 91 632 69 50 – Fax 91 632 69 18 www.mainsip.com <http://www.mainsip.com> – info@mainsip.com <mailto:info@mainsip.com>theCan't you just ask the user to hit the 'Enter/Return' button and use<sigh> Which selection? :) The user has to select a registry from a database (maybe 150 000 items), and i show a entry with a list below; the user can search with the list or can type in the entry, as he types the list shows only the coincidences; when the user hits Return if there is the gtkEntry text is in the list, he begins working whith the selected registry. If they are different, a new registry is created and he begins working whith it. As the user types, i do a Select <column> whith a limit, and that's pretty fast (i use mysql). But now i've realized that not every registry is correctly show, and i've had to put the query with a ORDER BY clause, and that hits performance a lot.'activate' signal?Yes, that should be the solution... if the Return weren't already used to confirm the selection. I thing i've found something imposible to do with php... my nightmare has come.... ;)