RE: drawing area and expose event



 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  gtk_widget_queue_draw_area() or gdk_window_invalidate_rect() and do all the 
 drawing in the expose event callback .
 Please correct me if I have understood it wrongly 
  

Behalf Of Havoc Pennington

>What you should do is call gtk_widget_queue_draw_area() or
>gdk_window_invalidate_rect() for the rectangle containing the
>"e". Then you will get an expose event for that area, and then you
>paint the "e"

>So all drawing is in the expose handler. 
Havoc




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