Re: Scrolling text that doesn't flicker
- From: "Dave Sexton" <dave@jwa[remove.this]online.com>
- Date: Sun, 12 Nov 2006 19:40:29 -0500
Hi James,
As Peter suggested, double buffering is an option to reduce flickering (the
only one I'm aware of as well). In the constructor of a class that derives
from Control (including the Form class) you can use the following code to
enable double buffering for that control (1.* applications):
this.SetStyle(ControlStyles.DoubleBuffer
| ControlStyles.AllPaintingInWmPaint
| ControlStyles.UserPaint, true);
In 2.0 apps, just set the Control.DoubleBuffered property to true (it uses the
new ControlStyles.OptimizedDoubleBuffer flag internally).
--
Dave Sexton
"pigeonrandle" <pigeonrandle@xxxxxxxxxxx> wrote in message
news:1163369002.125020.81540@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hi,
I have seen loads of different ways to do this, but the all seem to
yield the same result - text that doesn't flicker when it's moving too
slowly!
Does anyone know 'the best way' to make text scroll...
eg
Override OnPain and OnPaintBackground
Override WndProc
Use GDI
Use API
Or do i need to create some weird control in c++?!
Thanks in advance,
James
.
- Follow-Ups:
- Re: Scrolling text that doesn't flicker
- From: Michael C
- Re: Scrolling text that doesn't flicker
- References:
- Scrolling text that doesn't flicker
- From: pigeonrandle
- Scrolling text that doesn't flicker
- Prev by Date: Playing 8 bit 4:2:2 through serial port
- Next by Date: Re: Print Chinese in Delphi successful but in C# failed.
- Previous by thread: Re: Scrolling text that doesn't flicker
- Next by thread: Re: Scrolling text that doesn't flicker
- Index(es):
Relevant Pages
|