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