Thanks for all the great suggestions

I tried Charlies idea, but it did not work ... Sorry Charlie

I tried Mikes and it seemed to work ok

Tracy has great code and I think I will add that to my base class

I went with Freds code, quick and easy

Thanks and have a great weekend,
Kent

 

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf
Of Fred Taylor
Sent: Friday, July 13, 2012 4:47 PM
To: ProFox Email List
Subject: Re: VFP9 - Textbox

This works in the MouseUp for a numeric field:

this.SelStart = 0
this.SelLength = 100  && any value greater than the field width would work

Fred


On Fri, Jul 13, 2012 at 12:58 PM, Kent Belan <[email protected]> wrote:

> Happy Friday,
>
> I have a request from a user to make all numeric text boxes turn blue 
> when the user clicks in the text box.
>
> The SelectOnEntry property is set to True and everything works fine if 
> the user tabs into the numeric text box, but they sometimes use the 
> mouse and click into the field, but the cursor stays where ever the user
clicks.
>
> So if they click to the right of the decimal and start typing the 
> amount, they only get decimals.
>
> Any way to make the text box simulate SelectOnEntry if the user clicks 
> into the field with the mouse ?
>
> Thanks,
> Kent
>
>
[excessive quoting removed by server]

_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/6E0A9808E63E46FA9E5A21D88FC95DCC@LaptopW7
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to