![]() |
Ribon Bar - can't add button to MiniToolbar |
Post Reply
|
| Author | |
i-spy
Newbie
Joined: 26 November 2010 Status: Offline Points: 4 |
Post Options
Thanks(0)
Quote Reply
Topic: Ribon Bar - can't add button to MiniToolbarPosted: 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 |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
i-spy
Newbie
Joined: 26 November 2010 Status: Offline Points: 4 |
Post Options
Thanks(0)
Quote Reply
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. |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
i-spy
Newbie
Joined: 26 November 2010 Status: Offline Points: 4 |
Post Options
Thanks(0)
Quote Reply
Posted: 06 March 2011 at 5:40am |
|
Ok, I will try solution with configuration version
Thank you |
|
![]() |
|
Post Reply
|
|
|
Tweet
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |