Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: llyrad atsituab
  Where is llyrad atsituab?
 Tacloban City
 Philippines
 llyrad atsituab
 To: Don Higgins
  Where is Don Higgins?
 Peoria
 Illinois - United States
 Don Higgins
 Tags
Subject: RE: highlight
Thread ID: 331232 Message ID: 331235 # Views: 39 # Ratings: 0
Version: Visual FoxPro 9 SP2 Category: Forms
Date: Wednesday, December 28, 2011 4:51:40 AM         
   


> > How will I be able to highlight the entry of a textbox upon Got Focus or Click?
> >
> >
> > thanks in advance..
>
>
>
> I would make a new class based on a self highlighting textbox. If you want to make just one do this then put this code in the gotfocus() event:
>
> 
> WITH This
>   IF .SelectOnEntry
>     TextBox::GotFocus()
>     .SelStart = 0
>     .SelLength = LEN( This.Text )
>     NODEFAULT
>   ENDIF
> ENDWITH   
> 
> 

>
> Don Higgins
>
>
>
> http://www.youtube.com/watch?v=dcuFx85o8XU
>

I have an input mask of my textbox and it is '0.00' when I click or got focus the cursor is only at the last sel.. I tried using selstart 0 but still it is not behaving what I intend to do... please guide me...

ENTIRE THREAD

highlight Posted by llyrad atsituab @ 12/28/2011 4:31:06 AM
RE: highlight Posted by Don Higgins @ 12/28/2011 4:45:23 AM
RE: highlight Posted by llyrad atsituab @ 12/28/2011 4:51:40 AM
RE: highlight Posted by Don Higgins @ 12/28/2011 5:06:25 AM
RE: highlight Posted by Jun Tangunan @ 12/28/2011 5:14:40 AM
RE: highlight Posted by llyrad atsituab @ 12/28/2011 6:49:26 AM