Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
GoApp.RemoveToolBar() not calling ToolBarManager
Message
De
25/10/2000 13:16:50
Rex Mahel
Realm Software, Llc
Ohio, États-Unis
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
The Mere Mortals Framework
Titre:
GoApp.RemoveToolBar() not calling ToolBarManager
Divers
Thread ID:
00434165
Message ID:
00434165
Vues:
54
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform