Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Prevent text selection
Message
 
 
À
14/08/2004 10:21:26
Mike Yearwood
Toronto, Ontario, Canada
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00933338
Message ID:
00933427
Vues:
20
Mike,
Try
* GotFocus
This.nDblClick = _DBLCLICK
_DBLCLICK = 0.05

* LostFocus
_DBLCLICK = This.nDblClick

* DoubleClick
This.SelLength = 0
>
>I have a textbox with a numeric single digit. I want to click on the textbox to advance the value. When I click with a long delay between clicks the number advances. When I click with a short delay between clicks it highlights the value. I don't want it to highlight the text.
>
>I thought this was a double click. So I NODEFAULTed the doubleclick. Nope. That wasn't it.
>
>I thought maybe it was selecting the text. So I added access and assign methods to the selstart, sellength and seltext properties. I SET STEP ON, but they never fired.
>
--sb--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform