Re: [Newbism][Win32] Progress bar not updating in 'real time'

From: Date: Thu, 10 Jan 2002 17:36:48 +0000
Subject: Re: [Newbism][Win32] Progress bar not updating in 'real time'
References: 1  Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-980@lists.php.net to get a copy of this message
Try this: > ... > > $Common["Prd_PrgBar1"]->update(0); // Clear it > > $query = mysql_query("select something from somewere"); > > $Lst->clear(); > $Lst->freeze(); > $NumRows = mysql_num_rows($query); > $Cont = 1; > while ( $row = mysql_fetch_row( $query ) ) > { > $Lst->append( $row ) ); > $Common["Prd_PrgBar1"]->update( ($Cont/$NumRows) ); while (gtk::events_pending()) gtk::main_iteration(); > > ++$Cont; > } > > $Lst->thaw(); > --rdp -- Rich Payne http://talisman.mv.com

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