Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
TextBox.SelStart
Message
 
 
À
04/01/2000 13:36:30
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00312429
Message ID:
00312587
Vues:
50
Fernando,

In the GotFocus() of your subclass you will have to:

TextBox::GotFocus()
nodefault
this.SelStart = 6

Without the NODEFAULT the default behavior of the VFP baseclass will undo your setting of the SelStart after your overridden code executes.

>I try to do this (Make a subclass of the TextBox Class, and type the code to get the behavior that I want).
>
>I call the new subclass MyTBox. The MyTBox.gotfocus() is {this.selstart=6}
>
>In the dessigner form, I add MyTBox control to the form. Also I add a grid.
>The Grid has 2 column. I remove the default textbox of the column2 and add the new MyTBox class to the column2.
>...But the I get behavior in the 2 MyTbox (MyForm.MyTBox), but not in the Form.Grid1.Column2.MyTBox.
>
>Where is the problem?
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform