Re: GtkProgessBar Example ??
| From: | Steph | Date: | Fri, 17 May 2002 07:51:48 +0000 |
| Subject: | Re: GtkProgessBar Example ?? | ||
| References: | 1 | Groups: | php.gtk.general |
| Request: | Send a blank email to php-gtk-general+get-2005@lists.php.net to get a copy of this message | ||
Hi Holger,
Please, those samples are there so that you can play with them & break them & get to figure
what's what, not to be incorporated directly into programs ..
I would imagine that the line you need to change is
$value += 0.01;
(== 'add 1% to the value')
but GtkAdjustments are complicated animals, I know. What exactly is it that you're having
problems with, can you explain it better? Show that part of your code, maybe?
- Steph
----- Original Message -----
From: "Holger Banko" <holger.banko@pgam.com>
To: <php-gtk-general@lists.php.net>
Sent: Friday, May 17, 2002 8:10 AM
Subject: [PHP-GTK] GtkProgessBar Example ??
Hello,
I have tested a little bit with the Progressbar. I had no real success. The
example in the documentation was not very helpful. It is working but when I
try to apply a progressbar to my Program I have no success.
I calculate in a loop how far the process is (in %) and want to tell the
progressbar the percentage.
I don't understand the adjustment and my problem was, that I just see 0% at
the beginning of my loop and then just 100% at the end :-(. Is there are
refresh function I have to call ??? Or is it easier to just draw a growing
rectangle ?
Help :-)
--Holger
--
PHP-GTK General Mailing List (http://gtk.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php