Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grids on the fly.......
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00026214
Message ID:
00026230
Vues:
32
>>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

Except that columns are not in the listing of available classes to work with. Although I've written procedures to define classes, I'd prefer to keep it within the .VCX stuff. How can I write a column class in a VCX?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform