Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Autoscroll an editbox
Message
From
24/01/2001 12:01:38
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00467679
Message ID:
00467961
Views:
10
>> 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.
Previous
Reply
Map
View

Click here to load this message in the networking platform