Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Cursor position when form loses/regains focus
Message
De
25/01/2006 16:43:48
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
01090211
Message ID:
01090315
Vues:
9
>Something has changed but I'm not sure what.
>
>Consider two forms "A" & "B" and a global timer object responsible for periodically updating form "B". If when typing in a textbox field in form "A", the global timer fires and updates data on form "B", when focus returns to form "A" the cursor is moved back to the left most position in the textbox field on form "A" (appearing to the left of data already entered into that field) as opposed to the cursor returning to where it was when form "A" momentarily lost focus.
>
>This behavior was not always the case, but something has changed. Anyone have any ideas?

Update textbox.Value ?

this is a horrible VFP's feature,
when you update Value, Alignment,Refresh(),...
SelStart,SelLength they are reseted.
SelStartB=textB.SelStart
* update
textB.SelStart = M.SelStartB
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform