Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Special editbox
Message
De
21/04/2000 06:28:52
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Divers
Thread ID:
00361138
Message ID:
00362164
Vues:
22
Hi Moises.

>>I mean that if I just pull the scrollbar down and go to page 2,
wheh I get back to page1, that text is not not in the same place as left.
I have to click with mouse inside the edit box, go to page 2 and than
if I get back to page1 the editbox is in the same place left <<

This is what I would expect to happen. Even though the GotFocus() fires when you scroll the editbox, the insertion point (Editbox.SelStart) is going to be whatever it was the last time that you actually clicked into the edit box. What you need to do here is to reset the value of .nLastPosition to 0 whenever you navigate to a new record in the form or add a new one. If nLastPosition is 0, the code the I gave you will not reposition the cursor. And the edit box should then remain in the last position that you left it when you come back to that page.

Marcia
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform