Re: infinite loop problem :(
| From: | Ivan Rodriguez | Date: | Tue, 10 May 2005 15:19:34 +0000 |
| Subject: | Re: infinite loop problem :( | ||
| References: | 1 2 3 | Groups: | php.gtk.general |
| Request: | Send a blank email to php-gtk-general+get-5843@lists.php.net to get a copy of this message | ||
Hi
why don´t limited you the query?¿ you can limit the query and show
only some rows ... you can do some buttons to forward and to back ...
like Navicat ... and with this buttons navigate around the rows
On 5/10/05, lukas@pronet.lublin.pl <lukas@pronet.lublin.pl> wrote:
> Cytowanie Scott Mattocks <scott@crisscott.com>:
>
> > I think the problem is that you are connecting the value-changed signal.
> > When you remove a row, you change the value of the adjustment. When
> > you change the value you are telling the Clist to fill the rows. When
> > you fill the rows you remove a row. (See the loop?)
> >
> > Why are you repopulating the CList anyway? If it's in a scrolled window
> > just fill it up and let the scrolling do the work?
> >
> > Scott Mattocks
>
> Im using Clist to reflects table from DB and I need to let user filter rows so
> nr of rows can change - for example:
> If table have 2000 rows I need to ilustrate this so I must have Clist with 2000
> rows so Scrollbar is generated properly but... fetching all 2000 rows from
> database is inefficient beacause there is only part of them visible at one
> time.
> With Clist method is_row_visible() ( is_row_visible() is source of my next post
> on list ) I can detect which rows of table should be actually fetched and shown
> in Clist.
>
> --
> Łukasz Wojciechowski
>
> --
> PHP-GTK General Mailing List (http://gtk.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>