Print Page | Close Window

Ribon Bar - can't add button to MiniToolbar

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=17986
Printed Date: 06 October 2024 at 2:33am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Ribon Bar - can't add button to MiniToolbar
Posted By: i-spy
Subject: Ribon Bar - can't add button to MiniToolbar
Date Posted: 02 March 2011 at 5:42am
Hi

I'm trying to add a new button to existing MiniToolbar at Ribonbar. Ribonbar doesn't show newly added button, because after adding i'm call:

Call CommandBars.LoadCommandBars(...)

When I change registry key of commandbar settings then new button is added correctly (CommandBard can't load old settings, then starts at default), but I'can't do that because I don't want to loss configuration of toolbar.

How can I add a new button to MiniToolbar without losing old configuration?

Thank for answer,
i-spy




Replies:
Posted By: Oleg
Date Posted: 03 March 2011 at 2:38am
Hi,

You can add it after LoadCommandBars call. but check first if its not added already.


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


Posted By: i-spy
Date Posted: 03 March 2011 at 5:39am
Thanks for quick answer.

If I add a new button after  LoadCommandBars call, New button will be displayed always, even when user change toolbars configuration. I just want to add a new button once then at next application run use user configuration.



Posted By: Oleg
Date Posted: 04 March 2011 at 6:33am
Hi,

So you can add In registry new Key "ConfigurationVersion"    read it (default = 0) 
if (ConfigurationVersion == 0) add button

And store as ConfigurationVersion = 1.

In future you can ConfigurationVersion = 2, 3, 4 if you need more buttons.


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


Posted By: i-spy
Date Posted: 06 March 2011 at 5:40am
Ok, I will try solution with configuration version

Thank you



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