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:38:10
Luis Navas
Independent Consultant
Auckland, New Zealand
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00810669
Message ID:
00810701
Views:
14
>>>>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.
>
>It has to be added after the refresh method, 'cause if you add it before, the refresh will put the edibox at the beggining again.
>Luis

Luis,

No success. Can we just review what I should be doing?
In the refresh of the edit box I have a keyboard '{CTRL+END}'
Its control source is CurStatus.mStatus
In the other coding in the form that wants to update the status I have something like:
replace mstatus with mstatus + 'whatever' in CurStatus
thisform.deboxmStatus.refresh()
thisform.deboxmstatus.setfocus()

TIA.
Regards,

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

Click here to load this message in the networking platform