Print Page | Close Window

Saving toolbars layout to XML question

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=5016
Printed Date: 13 January 2026 at 5:26am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Saving toolbars layout to XML question
Posted By: yoavo
Subject: Saving toolbars layout to XML question
Date Posted: 10 September 2006 at 9:54am
Hi,
Is there a way to know if the toolbars layout was change ?
( The save layout operation to XML takes some time which I would like to avoid. If I know before saving the layout that it is not different from the current layout, I will skip the save operation ).
 
Yoav.



Replies:
Posted By: Oleg
Date Posted: 10 September 2006 at 1:42pm
Hi,
You can check GetCommandBarsOptions()->bDirtyState flag.


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


Posted By: Marcus
Date Posted: 11 September 2006 at 3:51am
But, the bDirtyState flag is not set, if the list of used commands changes.
 
Another bug in that context, which is a bit difficult to reproduce: Run "IntelligentMenus" sample, choose the hidden command "file/print preview" and close print preview. After that, the command is no longer hidden in file menu. That's correct so far. Then close the app and restart it. "file/print preview" is still there. Then open the "customize" dialog and reset menu and toolbar usage data. "print preview" is hidden again, as it should be. Then close the app and restart again. After that, the command is visible again!


Posted By: Oleg
Date Posted: 11 September 2006 at 8:36am
Hello,
Thanks, Marcus, these 2 fixed for 10.3.1 release


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


Posted By: Marcus
Date Posted: 13 October 2006 at 4:46am
One more bug:
bDirtyState is not set if you show or hide commandbars via the ID_VIEW_TOOLBAR menu or the commandbar's context menu.



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