Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Special K
Message
 
 
À
20/03/1998 11:18:48
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00086017
Message ID:
00086078
Vues:
20
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform