Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Timer enable_assign method
Message
From
27/07/2002 02:35:11
 
 
To
26/07/2002 14:35:13
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00683099
Message ID:
00683225
Views:
24
Hi Wayne

You only need one timer. Interval +/- 200. In the timer event:

1) Test for a variable holding the text to scroll. If this variable does not exist or is empty then create the text you want to scroll and store it to the variable.

2) Update the textbox caption with the text variable. NB Caption cannot be more than 256 char. So you should use caption = SUBSTR( cText, 1, 256 )

3) Update the scrolling text variable by removing characters from the left i.e. cText = SUBSTR( cText, 2) && Drops the first char from the left.

4) When the text variable is empty re-create it with new text - step (1).

There are variations and enhancements to this but this should get you going.

HTH

Jos
In the End, we will remember not the words of our enemies, but the silence of our friends - Martin Luther King, Jr.
Previous
Reply
Map
View

Click here to load this message in the networking platform