Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to scroll editbox as contents overflow
Message
De
04/07/2008 07:40:41
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01328923
Message ID:
01328955
Vues:
15
>>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform