471,337 Members | 817 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,337 software developers and data experts.

Scolling text.

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.
Dec 14 '05 #1
4 1443
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,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
"UJ" <fr**@nowhere.com> wrote in message
news:e7***************@TK2MSFTNGP15.phx.gbl...
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.

Dec 14 '05 #2
Ignacio Machin ( .NET/ C# MVP ) wrote:
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
Dec 14 '05 #3
Hi,

Yeah, you are probably right :)

But maybe if using wrapped in a Suspend/ResumeLayout it will be ok
--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
"Stefan Simek" <si**********@triaxis.nospam.sk> wrote in message
news:OO*************@TK2MSFTNGP11.phx.gbl...
Ignacio Machin ( .NET/ C# MVP ) wrote:
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

Dec 15 '05 #4
Ignacio Machin ( .NET/ C# MVP ) wrote:
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
Dec 15 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Xerxes | last post: by
2 posts views Thread by Macsicarr | last post: by
7 posts views Thread by Erwin Moller | last post: by
4 posts views Thread by Arif Çimen | last post: by
3 posts views Thread by jweinberg1975 | last post: by
3 posts views Thread by bbepristis | last post: by
10 posts views Thread by bluemountain | last post: by
reply views Thread by rosydwin | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.