Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Odd textbox behaviour
Message
 
À
31/03/2003 14:18:28
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00771458
Message ID:
00772114
Vues:
11
>>>>Just this TopLevel form application. The other applications I have are not in a top level form, and they do not have that same behaviour.
>>>
>>>Another workaround, alternative to Alan's suggestion, and one that doesn't require custom code, is to change .SelectOnEntry = .T.
>>
>>Thank you Hilmar,
>>
>>I found another workaround, Keeps the behaviour just as I expect it to be, without a worry of when a user enters the textbox highlighting some text with the mouse.
>>In the LostFocus Event, add the following line:
>>
This.SelStart = 0
>>
>>Tracy
>
>That looks both simple and effective.
>
>Suggestions: 1) Don't forget you can do this in your base classes. 2) You may want to make this dependent on some condition; for instance:
>
>
>if not This.SelectOnEntry
>  This.SelStart = 0
>
I did put it in the baseclass for this project. And the development team here is going to be investigating putting this in the base class of the main project.

Thank you for the condition, I over looked that possibility.

The odd things is, the main project is behaving this way, without the additional code.
Tracy
Tracy
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform