Re: expose_event



Hi Paul,

Am Don, 2002-09-12 um 03.19 schrieb Paul Davis:
your question isn't quite clear to me. 
[...]
If you want to clear the GtkLayout, remove the widgets from it.

The widgets inside shall remain. It's the drawings I want to remove.
I found gtk_widget_draw over the complete size does what I want, but it
flickers.

I think you're right. At the moment it's working but is very inelegant.
In the beginning I wantet to use the Canvas but it wasn't usable with
glade && C++
But since I already switched to C for that project I could give Canvas a
try. I hope it's working with glade && gtk+1.2
 
Perhaps you'd be better off explaining what you're trying to do.

I'm writing a db-designer much in the fashion of a UML tool, but more
specialized and not so overfeatured.
I need movable tables and need to connect them with lines.
Moving the tables is no problem.
The lines I'm drawing on the layout->window using gdk_draw_line.
To update the graph I need to remove the lines and draw new ones.
The expose event seemed like the right place for this ;)
If there was a line-widget everything would be much easier.

BTW,
I spent a year or two using a GtkLayout for the kind of thing you
sound as if you might be trying to do. When I eventually used the
Canvas, I realized I had made a serious error not starting out with
it.

Is Canvas working with glade && 1.2 ?
If not:
Is 2.0 stable (enough) ?
Is glade for 2.0 usable ?

Thanks for your help.
-- 
 e-trolley Sayegh & John, Nabil Sayegh
 Tel.: 0700 etrolley /// 0700 38765539
 Fax.: +49 69 8299381-8
 PGP : www.e-trolley.de




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]