Re: Please any one can help me?!

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

 



I'm assuing you are using Linux/X.

Each widget that you can "draw" to has an associated
window (an X Window in this case). In GTK it is refered
to as a GdkWindow (built around an X Window).

When you "draw" to a window, you almost always draw
the window's "background" (usually a solid color or a
tiled pixmap) in order to "clear" it in a way and then
you draw other details such as text and lines in it.
When you do this, it flickers because first you see
the entire window being redrawn a solid color first
before the details such as text and lines being redraw.

The way around this is to use "back buffers" and that's
X Pixmaps, in GTK it is refered to as a GdkPixmap.
What you do is draw to the GdkPixmap first (same thing,
draw a solid background, then details). Then you "put"
the GdkPixmap to the GdkWindow all in one pass so there
is no "flickering".

--Tara



On 2004.01.08 01:09 Mama Mari wrote:
> Dear All,
> I am a beginner in using the GUI Toolkits. I have started with FLTK.
> Later on I discovered that FLTK has a drawing problem. It is flashing
> when 
> you resize the window or some objects (like scrollbar) blinks.
> I used some demo programs which written by Microwindows. They have the
> same 
> problem. When I asked them why?, they said it is because of the way of
> FLTK 
> draw/redraw.
> Later on I have started to use GTK+. BUT?. It has the same problem.
> I have a Celeron(R) CPU 2.GHZ, 256 RAM computer.
> It is very strange ? how it blinks with such a computer???? What speed 
> should the computer have for stopping blinking?
> 
> What is wrong? .
> I have Dev-cpp  with g++ compiler.
> I highly appreciate any one could answer me..
> 
> _________________________________________________________________
> Protect your PC - get McAfee.com VirusScan Online 
> http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963
> 
> _______________________________________________
> 
> gtk-list@xxxxxxxxx
> http://mail.gnome.org/mailman/listinfo/gtk-list
> 
_______________________________________________

gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list

[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux