Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Multiple toolbar
Message
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00329823
Message ID:
00330233
Views:
30
Ok. How about just adding an extra application property to count the number of instantiation calls for the second toolbar and modify the method in the application object to handle both toolbars. i.e. Accept the toolbarname as a parameter and have a CASE structure to instantiate/release the correct toolbar and increment/decrement the right counter property.

>It is keeping track of the number of instances of a toolbar. The form calls the application class which instantiates the toolbar and store the value of 1 to a property in the application class. Next time I use a form using the same toolbar it calls the application class see that the counter is greater than 1 so need to instantiate and increments the counter to 2. Then in the unload of the form it calls a method in application class which release the toolbar if the counter is equal to zero otherwise it stays. In each of the click event it calls methods in the form such as _screen.active.movenext(). I just need some way to keep track of move than one toolbar.
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