Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Philosophical question
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00095802
Message ID:
00096160
Views:
22
Bret,

>If I understand correctly the advice Jim Booth gave me, frameworks should be built that way, with the buttons referring to methods in base form classes, making what he called a "contract between objects." TASTRADE works that way.

Yes, it's just the interface that you've designed the two components, your form and button group, to use to communicate with each other. Objects talking to each other basically breaks encapsulation. But non-trivial objects are pretty useless unless they can communicate with other objects. *s* You encapsulate what you can and define interfaces for everything else.

>My nav buttons use methods in my button bar container class, which can be neatly dropped on a form, WIZSTYLE-style, as someone here suggested. But if I want to use these buttons in a toolbar, I will have to start over.

Not really start over, you just use _screen.ActiveForm instead of thisform.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform