Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Prevent text selection
Message
 
 
To
14/08/2004 10:21:26
Mike Yearwood
Toronto, Ontario, Canada
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00933338
Message ID:
00933427
Views:
19
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--
Previous
Reply
Map
View

Click here to load this message in the networking platform