Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to change the Gird default controls?
Message
De
17/10/1997 00:00:31
 
 
À
16/10/1997 21:34:56
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00055076
Message ID:
00055101
Vues:
31
>Hi all,
>
>When I create a grid, usually it will use the standard TEXTBOX of VFP. Can I default this to use my TEXTBOX class?
>
>Thanks.

Good question. I don't think you can do that directly. What you could do is create your own GRID class. Create the average # of columns you use in your grids. Drop your own TEXTBOX class into each column then delete the VFP textbox in each column. Then you could drag and drop your custom GRID class on to form and have your own TEXTBOX class in there.

One point though. Grids are kind of wierd and I've had some troubles in the past with subclassed objects that worked pefectly fine on their own blowing up when in grids. Because grid's are difficult to tweak it would be a good idea to create a subclass of the VFP grid anyway. This way you will have more control of grid behavior throught an application without tweaking code in many different places.

Hope this helps.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform