Print Page | Close Window

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

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=4446
Printed Date: 21 June 2025 at 2:38am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: I'm sure I'm missing something very basic...
Posted By: mraiford
Subject: I'm sure I'm missing something very basic...
Date 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...



Replies:
Posted By: SuperMario
Date Posted: 20 June 2006 at 10:46am
What development environment you use?  I assume .NET and you are missing an event handler?


Posted By: mraiford
Date 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. 


Posted By: SuperMario
Date Posted: 20 June 2006 at 12:20pm
I have attached a small sample for you to try.  Nothing special.

uploads/20060620_122001_WindowsApplicat.zip - uploads/20060620_122001_WindowsApplicat.zip


Posted By: mraiford
Date 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?


Posted By: SuperMario
Date 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 - uploads/20060620_134921_WindowsApplicat.zip


Posted By: mraiford
Date 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!



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net