Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Command Bars
  New Posts New Posts RSS Feed - Command bars error in version 10.1
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Command bars error in version 10.1

 Post Reply Post Reply
Author
Message
lionello View Drop Down
Groupie
Groupie


Joined: 23 September 2005
Location: Italy
Status: Offline
Points: 26
Post Options Post Options   Thanks (0) Thanks(0)   Quote lionello Quote  Post ReplyReply Direct Link To This Post Topic: Command bars error in version 10.1
    Posted: 11 April 2006 at 10:57am

'   "....BarID =" cause an error in "Set ControlFile = ...". Why?
CommandBars.ActiveMenuBar.BarID = 1000

Set ControlFile = CommandBars.ActiveMenuBar.Controls.Add(xtpControlPopup, 0, "&File")

Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 12 April 2006 at 7:43am
Sorry, it is internal thing. MenuBar.BarID assumed to be 1. please don't change it.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
Milkman View Drop Down
Newbie
Newbie


Joined: 16 September 2005
Status: Offline
Points: 11
Post Options Post Options   Thanks (0) Thanks(0)   Quote Milkman Quote  Post ReplyReply Direct Link To This Post Posted: 12 April 2006 at 12:28pm
I can confirm this bug.  I get the following error:

Quote Run-Time error '-2147417848 (80070108)':

Method 'Active MenuBar' of object '_DCommandBars' failed


when I execute this line of code

Set ControlFile = CommandBars.ActiveMenuBar.Controls.Add(xtpControlPopup, 0, "&File", -1, False)


I had set the BarID to 999.  Resetting the BarID to 1 fixes the problem.  Also note that pressing the Stop button after this error crashes the IDE.

Thanks for letting us know about this Oleg.
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.035 seconds.