Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Special K
Message
 
 
To
20/03/1998 11:18:48
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00086017
Message ID:
00086078
Views:
21
Claude,

Here's the GotFocus() of my lowest level TextBox class (with proper formatting this time *g*):

* provide SelectOnEntry even if focus is coming to this control via mouse click

if ( this.SelectOnEntry )
   TextBox::GotFocus()
   nodefault

   this.SelStart = 0
   do case
      case ( this.MaxLength > 0 )
         this.SelLength = this.MaxLength
      case ( len( this.InputMask ) > 0 )
         this.SelLength = len( this.InputMask )
   endcase
endif


>I want the textbox to be entirely selected when the user clicks on it.
>
>I have the Format property set to k but it still starts accepting characters at the position where the textbox was selected.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Reply
Map
View

Click here to load this message in the networking platform