Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to scroll editbox as contents overflow
Message
 
 
To
04/07/2008 07:40:41
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01328923
Message ID:
01329031
Views:
12
>>>A form's button's click runs a long process. As it does, it updates a string that is shown to user via an editbox. This works fine except when the editbox is full and needs to scroll to show the latest addition.
>>>
>>>What is the best way to scroll edit box as needed to show the latest addition at all times?
>>
>>Check Re: Select and ensure visible EditBox Data Message #828230
>
>As usual on target. I already had the following code in another routine.
>
>
>*AddMessage() method
>LPARAMETERS tcMensaje,tlCRLF
>Thisform.cMensaje = Thisform.cMensaje + tcMensaje + IIF(tlCRLF,CHR(13)+CHR(10),'')
>Thisform.edtMensaje.SelStart = LEN(This.cMensaje)
>Thisform.edtMensaje.Refresh()
>Thisform.edtMensaje.SetFocus()
>
>
>What was missing was the NODEFAULT in the editbox refresh method.
>
>Thank you very much.
>
>Alex


You're welcome
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform