Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Timer enable_assign method
Message
De
27/07/2002 02:35:11
 
 
À
26/07/2002 14:35:13
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00683099
Message ID:
00683225
Vues:
23
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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform