General information
Category:
Coding, syntax & commands
>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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only