Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Toolbars...Where should the code go?
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00169462
Message ID:
00169651
Views:
19
Hi John,

As Ed said there really is no standard but here is the approach I take.

1. A standard toolbar for the entire app for things like navigation, editing, adding, saving and reverting.
2. Form specific toolbars based on individual forms needs.
3. Custom methods in forms like AddRec, SaveRec, etc.
4. The only code in toolbar.btn.click is to check if ActiveForm has a particular method and call it. This way the toolbar is generic to any form.
5. I use a custom method in each form called IsEnabled that is used for individual toolbar.btn.enabled values and menu pads SKIP FOR options.

HTH

>I just started incorporating toolbars into my application (retrofit) and I am unsure on the "best practice" or approach of doing this. Should there be one toolbar for each form? should there be one toolbar for many forms where the objects on the toolbar are changed according to the active form? Where should the code be placed...in the toolbar buttons events or in a custom form method? etc. Any basic guidance here on incorporating toolbars is greatly appreciated.
>
>Thanks,
>John.
Colin Magee
Team Leader, Systems Development
Metroland Media Group Ltd.
Mississauga, Ontario, Canada

cmagee@metroland.com

Never mistake having a career with having a life.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform