Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
GoApp.RemoveToolBar() not calling ToolBarManager
Message
From
25/10/2000 13:16:50
Rex Mahel
Realm Software, Llc
Ohio, United States
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Title:
GoApp.RemoveToolBar() not calling ToolBarManager
Miscellaneous
Thread ID:
00434165
Message ID:
00434165
Views:
51
All,

I need to temporarily remove the MainToolBar. I later need to recreate the toolbar. The problem is when the toolbar is removed, the reference is not removed from the ToolBarManager.

I changed the following code:

In goApp.RemoveToolBar()

Change:
IF TYPE("this.oMainToolbar") == "O" AND ! ISNULL(this.oMainToolbar)

To:
IF TYPE("this.oMainToolbar") == "O" AND ! ISNULL(this.oMainToolbar) AND This.oToolbars.Remove(This.oMainToolBar.Name)

This fixed the problem

TIA

Rex
Next
Reply
Map
View

Click here to load this message in the networking platform