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
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 "
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
"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
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
<[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
"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
>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
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
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
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
"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,
12 matches
Mail list logo