Re: drawing area and expose event

2002-02-27 Thread Havoc Pennington
satyajit kanungo [EMAIL PROTECTED] writes: Do we always need to attach the expose event to the drawing area to draw anything on it . Is there any other way where I can force the drawing . Yes, all drawing should happen in expose_event. There are other ways to do it sometimes

RE: drawing area and expose event

2002-02-27 Thread hunchback
Hi, Then I attached an expose-event to the drawing area and in the callback I put the same function(drawing fuction) and it draws properly . Do we always need to attach the expose event to the drawing area to draw anything on it . Is there any other way where I can force the drawing

Re: drawing area and expose event

2002-02-27 Thread iain
On Wed, 2002-02-27 at 16:47, Norman Black wrote: Hmmm. all drawing!!! Are you saying that when a user hits the e key in my program I should generate an expose event to draw the e in my window rather than simply draw the e in response to them pressing e. Well, if you don't do it in the

Re: drawing area and expose event

2002-02-27 Thread Paul Davis
Hmmm. all drawing!!! Are you saying that when a user hits the e key in my program I should generate an expose event to draw the e in my window rather than simply draw the e in response to them pressing e. call gtk_widget_queue_draw(), then redraw in the subsequent expose event. you have to

Re: drawing area and expose event

2002-02-27 Thread Havoc Pennington
Norman Black [EMAIL PROTECTED] writes: Are you saying that when a user hits the e key in my program I should generate an expose event to draw the e in my window rather than simply draw the e in response to them pressing e. What you should do is call gtk_widget_queue_draw_area() or

Re: drawing area and expose event

2002-02-27 Thread Havoc Pennington
Norman Black [EMAIL PROTECTED] writes: The expose handler must be able to redraw any area anyway, so you may as well put all drawing there for code cleanliness; putting all drawing there is also crucial to be sure you don't have any flicker in GTK 2. My code does not flicker now on

Re: drawing area and expose event

2002-02-27 Thread Christian Seberino
something? Chris On Wed, Feb 27, 2002 at 11:10:28AM -0500, Havoc Pennington wrote: satyajit kanungo [EMAIL PROTECTED] writes: Do we always need to attach the expose event to the drawing area to draw anything on it . Is there any other way where I can force the drawing . Yes, all

RE: drawing area and expose event

2002-02-27 Thread satyajit kanungo
Thanks a lot I shall put all my drawings in the expose event and try my application again. I had taken the sample program form GdkRGB chapter (gdk API Reference) and was trying it the other way round . So whenever I want some drawings to happen in my drawable I should better call a