Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to make the “marquee” in a form
Message
From
12/04/2004 07:00:17
 
 
To
12/04/2004 04:12:58
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00893966
Message ID:
00893988
Views:
20
Hi Canh,

Let us suppose you have a label named lblMessage dropped on a form. This label's caption is where the text of the marquee is. Then, drop a timer with an interval of let's say 10 milliseconds. On the timer event, put the following:
WITH ThisForm
   .lblMessage.Left = .xLeft
   .xLeft = .xLeft - 0.2000
   IF .xLeft < 0 AND ABS( .xLeft ) >= .lblMessage.Width 
      .xLeft = .Width
   ENDIF
ENDWITH
You have to put a form property xLeft. In the Init of the form, set:
This.xLeft = This.Width
Try to run it and enjoy! Hope that's what you wanted.
HTH

Dennis

>Hello all!
>I would like to make the “marquee”- similar the marquee of windows saver- in a form. Specially, the content of marquee is more than 256 characters.
>Please tell me do that.
>Thanks.
>Canh
Previous
Reply
Map
View

Click here to load this message in the networking platform