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 g

Re: drawing area and expose event

2002-02-27 Thread Havoc Pennington
Christian Seberino <[EMAIL PROTECTED]> writes: > > I thought configure event handler draws *everything* and > expose event handler just redraws portion *uncovered* > e.g. covering with corner of window and then not. > > This would imply that all drawing should happen in configure > event with "

Re: drawing area and expose event

2002-02-27 Thread Christian Seberino
Havoc I thought configure event handler draws *everything* and expose event handler just redraws portion *uncovered* e.g. covering with corner of window and then not. This would imply that all drawing should happen in configure event with "patches" being done in expose event. Am I missing somet

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 flic

Re: drawing area and expose event

2002-02-27 Thread Norman Black
K 2 makes my code flicker, what does that mean? Best Regards, Norman Black Stony Brook Software - Original Message - From: "Havoc Pennington" <[EMAIL PROTECTED]> To: "Norman Black" <[EMAIL PROTECTED]> Cc: "gtk-list" <[EMAIL PROTECTED]> Sent: W

Re: drawing area and expose event

2002-02-27 Thread Havoc Pennington
<[EMAIL PROTECTED]> writes: > > 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 an

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_a

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. y

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

Re: drawing area and expose event

2002-02-27 Thread Norman Black
Black Stony Brook Software - Original Message - From: "Havoc Pennington" <[EMAIL PROTECTED]> To: "satyajit kanungo" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Wednesday, February 27, 2002 8:10 AM Subject: Re: drawing area and expose event > > &quo

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 th

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,