Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problem with SelStart In A TextBox
Message
 
À
17/06/2003 11:52:47
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00800835
Message ID:
00805429
Vues:
29
Hi Gary,

well, I apologize for the trouble ISX is causing you. Just a bit of background, though. The reason for this behavior is a bug (I'd call it a bug) that goes back to at least FP 2.5. ON KEY LABEL commands terminate the current @...GET and the current textbox and set the focus back to the control itself. In other words, every time an ON KEY LABEL is pressed, the complete sequence of valid, lostfocus, when and Gotfocus is triggered. With SelectOnEntry this forces everything to be selected. As ISX stuffs a dot into the keyboard buffer if it is not responsible for dealing with the key stroke, the single dot replaces all of the content in the textbox.

If you have any idea to get around that I'm more than happy to implement it. I tried using a version that used popups instead of ON KEY LABEL, but then there was no easy way to repeat the keystroke in case ISX was not responsible. I also tried to recognize a textbox. But there wasn't any way to insert the period as the cursor has already moved to the beginning when ISX is called. The only work around that I can think of would be to use a DLL that intercepts key strokes, but so far I haven't found the time to write one.

--
Christof
--
Christof
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform