Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Command Bars
  New Posts New Posts RSS Feed - I'm sure I'm missing something very basic...
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

I'm sure I'm missing something very basic...

 Post Reply Post Reply
Author
Message
mraiford View Drop Down
Newbie
Newbie
Avatar

Joined: 20 June 2006
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote mraiford Quote  Post ReplyReply Direct Link To This Post Topic: I'm sure I'm missing something very basic...
    Posted: 20 June 2006 at 10:21am
I have set up a menu using the command bars controls, but when I click on the items, the Execute event never fires. I've looked at the samples and searched the forums, but have found nothing.

From what I can tell, I'm doing exactly what the samples were doing..

I'm lost...
Back to Top
SuperMario View Drop Down
Admin Group
Admin Group
Avatar

Joined: 14 February 2004
Status: Offline
Points: 18057
Post Options Post Options   Thanks (0) Thanks(0)   Quote SuperMario Quote  Post ReplyReply Direct Link To This Post Posted: 20 June 2006 at 10:46am
What development environment you use?  I assume .NET and you are missing an event handler?
Back to Top
mraiford View Drop Down
Newbie
Newbie
Avatar

Joined: 20 June 2006
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote mraiford Quote  Post ReplyReply Direct Link To This Post Posted: 20 June 2006 at 11:58am
VS.NET 2003, Yep-- I have an event handler, added through the form designer. It shows there, and in the generated code (InitializeComponent) The event handler is set. 
Back to Top
SuperMario View Drop Down
Admin Group
Admin Group
Avatar

Joined: 14 February 2004
Status: Offline
Points: 18057
Post Options Post Options   Thanks (0) Thanks(0)   Quote SuperMario Quote  Post ReplyReply Direct Link To This Post Posted: 20 June 2006 at 12:20pm
I have attached a small sample for you to try.  Nothing special.

uploads/20060620_122001_WindowsApplicat.zip
Back to Top
mraiford View Drop Down
Newbie
Newbie
Avatar

Joined: 20 June 2006
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote mraiford Quote  Post ReplyReply Direct Link To This Post Posted: 20 June 2006 at 12:53pm
Sample works just fine. No differences except:

I didn't put a description on the menu items, and have set EnableDocking to false on the menu bar

I'm also using the Docking control, if that makes any difference.

(edit) After removing the docking pane, it works. Is it possible to use the docking pane control with the command bars?
Back to Top
SuperMario View Drop Down
Admin Group
Admin Group
Avatar

Joined: 14 February 2004
Status: Offline
Points: 18057
Post Options Post Options   Thanks (0) Thanks(0)   Quote SuperMario Quote  Post ReplyReply Direct Link To This Post Posted: 20 June 2006 at 1:50pm
Yes, they can work together.  I can't seem to reproduce your problem, even after setting it up like you suggested.

uploads/20060620_134921_WindowsApplicat.zip
Back to Top
mraiford View Drop Down
Newbie
Newbie
Avatar

Joined: 20 June 2006
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote mraiford Quote  Post ReplyReply Direct Link To This Post Posted: 20 June 2006 at 3:17pm
Quote
DockingPaneManager.SetCommandBars (CommandBars.GetDispatch());

And that is why it didn't work for me. :)

Thanks for the help!
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.064 seconds.