How 2 use a toolbar in Foxpro form - TechRepublic
General discussion
May 31, 2006 at 05:44 AM
masterm

How 2 use a toolbar in Foxpro form

by masterm . Updated 20 years, 1 month ago

I have a data navigation toolbar that I want to show when the form is active. I am able to get the toolbar to show when the form opens and close when I close the form. However if I open more than one form and minimize all of the forms the toolbar still shows.Also as soon as I minimize one form another one will maximise. I have read on MSDN site that you need to create a state manager. The state manager is a globally accessible object that menus and toolbars can use to communicate with forms and other service objects. The application would create the state manager object before putting up the system menu and before creating any forms or toolbars. This state manager then keeps track of what toolbars are open and what the state of the buttons are on the toolbar.

How do I go about creating such a state manager? I have looked for some code on the net but cant find anything. Is there a better way of handling this? If some one has examlple code they can send it would greatly help or juts put me on my way to get a basic working model.

This discussion is locked

All Comments