Jay Johengen
Altamahaw-Ossipee, Caroline du Nord, États-Unis
Versions des environnements
>>I have a container class that has a row of command buttons. I have a need to save some of the properties of each button on intialization of the class. Doing one button was simple; just create the properties on the container. Now I need to do it for 10 buttons and I want to do it with the right approach. Creating button-specific properties on the container for 10 buttons doesn't seem like a good idea. Any ideas? Thanks!
>
>In the init of each button: This.addproperty('yourvar',yourvalue). The best is to create a common subclass for these buttons.
Ok, I rarely use the AddProperty in visual classes, but it makes sense. Thanks!
For extra credit: How can I change the baseclass of my buttons to reference a new baseclass button I create? Right now they are using the default Foxpro command button.
UPDATE: By the way, that worked like a charm! Thanks again!
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement