If I recall correctly, I think you can do a "THIS.setfocus()" in the 
"GotFocus" event. I'm pretty sure that will cause the whole thing to be 
highlighted the first time a user clicks on it.

I also can't remember if this causes some oddities if the control is not 
set to highlight the whole thing. So in my class code I've got the following:

IF THIS.SelectOnEntry == .T.
         THIS.SetFocus()
ENDIF

HTH,

-Charlie


At 03:37 PM 7/22/2008 -0400, Vince Teachout wrote:
>Stephen Russell wrote:
> > On Tue, Jul 22, 2008 at 12:23 PM, John J. Mihaljevic
> > <[EMAIL PROTECTED]> wrote:
> >
> >> They wouldn't deliberately click in the middle of the text.  They just 
> wanna
> >> be able to click anywhere in the field to begin their data entry.  And 
> when
> >> they click (for example) in the 5th character of a ten-character 
> field, they
> >> run out of room after typing just six characters.  They want to be at the
> >> left-most position no matter how they get into the field - clicking or
> >> tabbing.
> >>
> > -----------------------------------------
> >
> > What if they type in text and reaize that it is wrong?  When they
> > click on the letter, they are now at the first char()?  No that isn't
> > right.
> >
> > i guess what is wrong is that you define the length on the front end.
> >
>
>My guess, based on my user's wants, is that what they actually want is
>for the whole field to be highlighted when they click it.  Then they can
>just start typing, replacing whatever was their previously.
>OTOH, if the really did mean to click in the middle of a word, they
>click a second time.  This is how Firefox handles the URL line, so it's
>not that unusual a procedure.
>



_______________________________________________
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/[EMAIL PROTECTED]
** 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