Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Saving toolbars layout to XML question
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Saving toolbars layout to XML question

 Post Reply Post Reply
Author
Message
yoavo View Drop Down
Senior Member
Senior Member


Joined: 29 February 2004
Location: Israel
Status: Offline
Points: 140
Post Options Post Options   Thanks (0) Thanks(0)   Quote yoavo Quote  Post ReplyReply Direct Link To This Post Topic: Saving toolbars layout to XML question
    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.
Back to Top
Oleg View Drop Down
Senior Member
Senior Member


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: 10 September 2006 at 1:42pm
Hi,
You can check GetCommandBarsOptions()->bDirtyState flag.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
Marcus View Drop Down
Groupie
Groupie


Joined: 04 June 2006
Location: Germany
Status: Offline
Points: 42
Post Options Post Options   Thanks (0) Thanks(0)   Quote Marcus Quote  Post ReplyReply Direct Link To This Post 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!
Back to Top
Oleg View Drop Down
Senior Member
Senior Member


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: 11 September 2006 at 8:36am
Hello,
Thanks, Marcus, these 2 fixed for 10.3.1 release
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
Marcus View Drop Down
Groupie
Groupie


Joined: 04 June 2006
Location: Germany
Status: Offline
Points: 42
Post Options Post Options   Thanks (0) Thanks(0)   Quote Marcus Quote  Post ReplyReply Direct Link To This Post 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.
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.059 seconds.