Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to Force Scroll Bars in Edit Box to 'end' of control
Message
 
To
16/07/2003 11:11:08
Luis Navas
Independent Consultant
Auckland, New Zealand
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00810669
Message ID:
00810681
Views:
11
>>I am using a read only edit box in VFP 7 to display the changing status of some processing.
>>Basically, I am updating a memo field in a cursor that is the source and then refreshing the edit box.
>>When I refresh the edit box, the vertical scroll bar always moves to the top of the control. A keyboard of CTRL+END in the refresh does not move the scroll bar down.
>>As a result, the oldest part of the status is displayed on the form instead of the newest.
>>Is there a way to move the scroll bar down?
>>Am I using the wrong control?
>>
>>TIA.
>
>For the CTRL+END to work you must set the focus to the control first. You can try in the Refresh of the form, to set the focus toi the control, and then set it back to the control you like
>
>Luis

Luis,

I added the this.setfocus() in the refresh and that did not appear to help.
I then added the setfocus in the other code in the form before calling the controls refresh. This method did not help either except for the LAST update to the edit box. In that case, the scroll bar was at the end.
Regards,

Allan Coganovitch
allanc@proven-solutions.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform