Re: How to draw a graph with php-gtk ?
| From: | Alan Knowles | Date: | Tue, 24 Sep 2002 00:16:47 +0000 |
| Subject: | Re: How to draw a graph with php-gtk ? | ||
| References: | 1 | Groups: | php.gtk.general |
| Request: | Send a blank email to php-gtk-general+get-2469@lists.php.net to get a copy of this message | ||
Ernest Beinrohr wrote:
Hi there, maybe some of you could help me with this a little. I would need to [slowly] draw a graph with php-gtk. Actually I would nee to draw some data and draw it WHILE proceeding, also not fetch aal the neede data and draw it, but draw it step-by-step.you will need to use the gtkdrawingarea widget, which is one of the more confusing widgets out there... Have a look at the scribble.php example, this gives you the basics of drawing. there are a few things to remember about gtkdrawingareas : a) you draw onto a pixmap which is associated with the drawingarea b) after you have drawn a line, you need to tell the drawing area to redraw the area of the pixmap that you have changed. there is a very complex example of a drawingarea in the html render widget. http://docs.akbkhome.com/akpear/GTK_HtmlEditor.html Regards Alan
is it possible ? PS: is should like like "animated" ...