Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Command Bars
  New Posts New Posts RSS Feed - Ribon Bar - can't add button to MiniToolbar
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Ribon Bar - can't add button to MiniToolbar

 Post Reply Post Reply
Author
Message
i-spy View Drop Down
Newbie
Newbie


Joined: 26 November 2010
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote i-spy Quote  Post ReplyReply Direct Link To This Post Topic: Ribon Bar - can't add button to MiniToolbar
    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

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: 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
Back to Top
i-spy View Drop Down
Newbie
Newbie


Joined: 26 November 2010
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote i-spy Quote  Post ReplyReply Direct Link To This Post 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.

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: 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
Back to Top
i-spy View Drop Down
Newbie
Newbie


Joined: 26 November 2010
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote i-spy Quote  Post ReplyReply Direct Link To This Post Posted: 06 March 2011 at 5:40am
Ok, I will try solution with configuration version

Thank you
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.202 seconds.