Scolling text.

U

UJ

I need to display data in a scrolling area much like HTML's marque (one
scrolling left and one scrolling up). Is there an object that will do that
for me in a C#/Windows app or do I need to load a browser window and then
use an HTML file to do it.

TIA - Jeff.
 
I

Ignacio Machin \( .NET/ C# MVP \)

Hi,

nop, there is nothing like this, you will have to do it, use a Label and a
Timer, change the Label position at the timer tick.

cheers,
 
S

Stefan Simek

Ignacio said:
Hi,

nop, there is nothing like this, you will have to do it, use a Label and a
Timer, change the Label position at the timer tick.

cheers,

Ouch, that will probably hurt performance terribly. You'll be much
better off rolling your own Marquee control with custom OnPaint handling.

Stefan
 
I

Ignacio Machin \( .NET/ C# MVP \)

Hi,

Yeah, you are probably right :)

But maybe if using wrapped in a Suspend/ResumeLayout it will be ok
 
S

Stefan Simek

Ignacio said:
Hi,

Yeah, you are probably right :)

But maybe if using wrapped in a Suspend/ResumeLayout it will be ok

Hi,

I don't think that would change anything, as the Suspend/ResumeLayout
just queues layout operations and applies them at once (I suspect it's
implemented using the DeferWindowPos API), and as you're doing just one
(moving the label), the net effect would be the same. And moving a label
will allow you only to do very limited marquee effects. What if you have
a theoretically infinite stream of text that you wish to scroll?
(something like the TV news bar at the bottom)

Stefan
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top