Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to make the “marquee” in a form
Message
De
12/04/2004 07:00:17
 
 
À
12/04/2004 04:12:58
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00893966
Message ID:
00893988
Vues:
17
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform