Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
TextBox.SelStart
Message
De
04/01/2000 13:40:57
 
 
À
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:
00312575
Vues:
34
>Dear Ed:
>
>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.
>

You have to add the control programmatically to the grid; the default behavior of the native grid class will put a base TextBox in as the control in the column.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform