Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grids on the fly.......
Message
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00026214
Message ID:
00026216
Views:
31
>I have a grid class whose .ColumnCount property starts as the default -1. The columns are built on the fly by using afields() and creating them. I need to be able to access the .Click methods of the subsequent headers and text boxes that are created. How can I create code that will execute when a user clicks a header, a textbox and get it inserted into a grid on the fly?

Define your own column class. As long as you define the grid on the fly, you can use your own class for columns/headers/etc. Put a property their that will keep an object reference. When you want to call the click method, call in fact the click of the object you hook on that property. This way you can define and change those hooked objects on the fly as you want and like!

Vlad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform