Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Autoscroll an editbox
Message
De
24/01/2001 12:01:38
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00467679
Message ID:
00467961
Vues:
11
>> EditBox.SelStart = len(EditBox.Value)
>
>I will try tomorrow. I just tucked VFP in bed (after the bath) and she gets a little cranky w/o her full 8 hours.

One thing I do for displaying logs is to feed the lines to the bottom of a listbox, and if I've hit the number of visible lines, remove the top line. You may still echo the same content into a text file which you may give the user an opportunity to look at once the event you're logging is finished.
This listbox thing actually works fine and quick. Another, really quick'n'dirty solution is to have a little form just for displaying the log, and using form.print to show the lines. It will scroll all by itself, that's actually the ? operator on-the-form. Watch it, it scrolls behind your controls, and your bitmaps and other stuff may whizz away until a refresh or cls is run (but then you'll lose your printouts).

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform