Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to change the Gird default controls?
Message
From
17/10/1997 00:00:31
 
 
To
16/10/1997 21:34:56
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00055076
Message ID:
00055101
Views:
26
>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.
Previous
Reply
Map
View

Click here to load this message in the networking platform