Select to view content in your preferred language

ICommandBar / ICommandBars - Bugs/Changes???

1172
3
11-10-2009 10:06 AM
artifact
Occasional Contributor
Has there been significant changes made to the ICommandBar/IcommandBars interfaces? Code that worked perfectly in ArcGIS 9.3.1 now seems to have all sorts of bugs.

It appears that i can still create CommandBars using the Create member but if i try to add a command to it then ArcGIS crashes completely. Additionally many of the Dock Flag constants do not seem to work, for instance the esriDockHide flag doesn't hide the toolbars any longer.

Are these simply bugs or should I be preparing to make some serious changes to our software? Any information would be appreciated.

thanks
0 Kudos
3 Replies
RalfGottschalk
Esri Contributor
Artifact,

Could you please log a support ticket for this issue?  There may very well be a bug here, and getting a reproducible case to a support analyst would be the best way to identify the problem and log a bug if necessary.
0 Kudos
LorenzMeyer
Emerging Contributor
Hi there

We wrote an extension, which sets up some custom Toolbars at runtime. The new Toolbars are created as follows:
ICommandBar newCommandBar = _applicationReference.Document.CommandBars.Create(myToolbarName,                                                                   esriCmdBarType.esriCmdBarTypeToolbar);

As the ICommandBar is also an ICommandItem I later try to delete the Toolbar:
((ICommandItem)newCommandBar).Delete();
But this doesn't work. The toolbar still exists an is shown up in ArcMap...
Does anybody know how to remove them or is it a bug in ArcGIS 9.4 Beta 2??

Any help needed... Thanks
0 Kudos
JamesVillanueva
Regular Contributor
Did anyone ever solve this issue? I am having the same problem.
0 Kudos