![]() |
Saving toolbars layout to XML question |
Post Reply
|
| Author | |
yoavo
Senior Member
Joined: 29 February 2004 Location: Israel Status: Offline Points: 140 |
Post Options
Thanks(0)
Quote Reply
Topic: Saving toolbars layout to XML questionPosted: 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.
|
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 10 September 2006 at 1:42pm |
|
Hi,
You can check GetCommandBarsOptions()->bDirtyState flag.
|
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
Marcus
Groupie
Joined: 04 June 2006 Location: Germany Status: Offline Points: 42 |
Post Options
Thanks(0)
Quote Reply
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!
|
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 11 September 2006 at 8:36am |
|
Hello,
Thanks, Marcus, these 2 fixed for 10.3.1 release
|
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
Marcus
Groupie
Joined: 04 June 2006 Location: Germany Status: Offline Points: 42 |
Post Options
Thanks(0)
Quote Reply
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.
|
|
![]() |
|
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 |