Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Members of a parent class cannot be deleted
Message
From
16/01/2008 13:03:08
 
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Environment versions
Visual FoxPro:
VFP 8 SP1
Miscellaneous
Thread ID:
01282237
Message ID:
01282335
Views:
8
>>>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
Previous
Reply
Map
View

Click here to load this message in the networking platform