Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SelStart function
Message
De
30/03/2006 15:58:44
 
 
À
30/03/2006 15:54:33
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 6 SP5
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
01097121
Message ID:
01109352
Vues:
56
>>>>>I agree this sample works just fine.
>>>>>
>>>>>However, it does not duplicate my situation because the control in your grid is still a textbox instead of an editbox and you have no interactiveChange event code for the grid editbox control.
>>>>
>>>>I think I must have missed where you said the control was an EditBox.
>>>>
>>>>You certainly do appear to be right, an EditBox in a grid, I can't even make the .SelStart go anywhere else but the beginning. It jumps back there as soon as the control gets focus. FWIW, it seems it's always worked that way.
>>>
>>>Just an idea... save editbox's .selstart in .lostfocus(), and put it where it was in .gotfocus - may even work.
>>
>>Tried that. The .SelStart goes to 0 even if you set it to some other value in .GotFocus().
>
>This must have been a long thread. I had such a deja vu when I wrote that...
>
>But then it happens to me with my own code. I get an idea, and sit down to write code to do it - and then find out I already wrote it :).

At least I'm not the only one that happens to. But that's better than saying "What idiot wrote THIS code!" and finding out you had done it yourself. :(
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform