Information générale
Catégorie:
Gestionnaire d'écran & Écrans
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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement