Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Class Design Problem - Again
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01207055
Message ID:
01207754
Vues:
30
Ok, I sit corrected.

I still have this issue though:

I want to create a Container class with controls on it, such as
text boxes and a combo.

The controls all need to run a bit of code, but its not code
I want the user to be able to call.

I could copy the code into all the controls which is bad design.

Or I could put the code in a method on the Container class and have
all the controls call it. If I put it on the Container class, then it
seems the method would have to be public for the controls to be able
to run it. But then the users of the control would be able to call it.

So what't the solution here?




>A button is not created from a form class. You are misreading the help. While the button is a member of an instance of a form, it is not a member of the form class.
>
>>Huh??
>>
>>Again, the help text says "Properties and methods designated as Hidden
>>can be accessed only by other members in the class definition"
>>
>>The form is a class definition, and the button is a member of it. Accorordingly,
>>the button should be able to access anything on the form, regardless of the
>>visibility of the PEM on the form.
Everything makes sense in someone's mind
public class SystemCrasher :ICrashable
In addition, an integer field is not for irrational people
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform