Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Members of a parent class cannot be deleted
Message
De
16/01/2008 13:03:08
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Versions des environnements
Visual FoxPro:
VFP 8 SP1
Divers
Thread ID:
01282237
Message ID:
01282335
Vues:
9
>>>Hide the button or remove it using RemoveObject method.
>>
>>Isn't that breaking the OOP concept that Jim is talking about?
>
>Nope.
>
>I have a toolbar class where almost every button has a corresponding property to hide it. Say, lShowPrint would show print button, etc.
>
>So, in your form you would set up the visibility of the buttons according to your needs.

Jay -

The other possiblity is to have sub-classes. I have all of my forms come off a base form class. Then I have a report form class, sub-classed from my base form class, which has buttons to print, export, etc. Then all of my report screens are based off of this report form class.

HTH!
Carsten M. Thode
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform