Print Page | Close Window

Command Bars Actions

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=11080
Printed Date: 07 October 2024 at 8:30pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Command Bars Actions
Posted By: johnp
Subject: Command Bars Actions
Date Posted: 17 June 2008 at 3:45pm
Hello,
 
I am using a command bar on a vb6 form. The command bar was created using the design studio and includes drop menus and toolbars. I have included .enableactions in the form load event and have added actions to the command bar's actions colletion. My problem is that when I disable a particular action id it only disables it in the drop down menu and not the toolbar that includes the same id. I am really stumped here and could urgently use some help!
 
Thanks



Replies:
Posted By: Oleg
Date Posted: 18 June 2008 at 12:34am

Hi,

Have to work. Double check your toolbar has same Action in design studio. You have to enable actions in designer - not in code.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: johnp
Date Posted: 18 June 2008 at 3:55am
Yes, the both items have the same action. How do I enable actions in the design studio? Given that I've enable actions in code, why do they work for the menu and not the toolbar?
Thanks for your response.


Posted By: johnp
Date Posted: 18 June 2008 at 4:17am
Oleg, I finally found the Enable Actions option in the design studio and now the toolbar button and menu items are properly disabled. Can I assume that all of the controls added to the command bar through the design studio will be in the actions collection? Also, does this mean that all aspects of the command bar appearance and behavior have to be set up in the design studio and not in code? For example, can the visual theme be changed in code? In general, do you (or when do you) recommend using the design studio vs. creating command bars completely in code?
Thanks!


Posted By: Oleg
Date Posted: 18 June 2008 at 7:02am
Hi,
 
All that can be changed in designer, can be changed in code.
Its only "Actions" thing - that EnableActions have to be called before you add controls.
I can't recommend use always designer or only code - it depends on task and number of people who work with project.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS



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