| View previous topic :: View next topic |
| Author |
Message |
smartz993 I post too much
Reputation: 2
Joined: 20 Jun 2006 Posts: 2013 Location: USA
|
Posted: Sat Oct 06, 2007 6:54 am Post subject: [Delphi] Marquee |
|
|
Hey everyone,
I'm making a marquee tool. I made most of it, but the main part (marquee) is giving me some trouble. I've been thinking of the best way to "scroll" the text, but none have been working.
I don't want to use a component.
Here's what i tried:
-delphi.about.com's marquee thing..didn't work because i need it to something different, so i can't just use 'Copy'.
-Label.Left:=Label.Left+1 on a timer..But if i do this, then the text like, blinks..
Anyone have any suggestions?
Thanks. |
|
| Back to top |
|
 |
zart Master Cheater
Reputation: 0
Joined: 20 Aug 2007 Posts: 351 Location: russia
|
Posted: Sat Oct 06, 2007 10:16 am Post subject: Re: [Delphi] Marquee |
|
|
| smartz993 wrote: | Hey everyone,
I'm making a marquee tool. I made most of it, but the main part (marquee) is giving me some trouble. I've been thinking of the best way to "scroll" the text, but none have been working.
I don't want to use a component.
Here's what i tried:
-delphi.about.com's marquee thing..didn't work because i need it to something different, so i can't just use 'Copy'.
-Label.Left:=Label.Left+1 on a timer..But if i do this, then the text like, blinks..
Anyone have any suggestions?
Thanks. |
Why won't, http://delphi.about.com/library/weekly/aa071100a.htm, work? You could probably modify that so it does work... _________________
0x7A 0x61 0x72 0x74
TEAM RESURRECTiON |
|
| Back to top |
|
 |
smartz993 I post too much
Reputation: 2
Joined: 20 Jun 2006 Posts: 2013 Location: USA
|
Posted: Sat Oct 06, 2007 11:44 am Post subject: |
|
|
It won't work because the way Zarko does it uses the Copy function.
All he does is move the first letter to the end..=/ |
|
| Back to top |
|
 |
zart Master Cheater
Reputation: 0
Joined: 20 Aug 2007 Posts: 351 Location: russia
|
Posted: Sat Oct 06, 2007 12:16 pm Post subject: |
|
|
So fill the label with spaces so it extends to the whole form length? _________________
0x7A 0x61 0x72 0x74
TEAM RESURRECTiON |
|
| Back to top |
|
 |
smartz993 I post too much
Reputation: 2
Joined: 20 Jun 2006 Posts: 2013 Location: USA
|
Posted: Sat Oct 06, 2007 12:20 pm Post subject: |
|
|
Yea...i was gonna try that, but idk how many spaces i would need..(if ran on different computers..)
So maybe i'll just make some formula. Lol.
************************************************************
FlawedMatrix helped me fix it.
I put the label on top of a panel, and then doublebuffered the panel. |
|
| Back to top |
|
 |
|