Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - Save state
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Save state

 Post Reply Post Reply
Author
Message
gmail View Drop Down
Groupie
Groupie


Joined: 24 February 2008
Status: Offline
Points: 45
Post Options Post Options   Thanks (0) Thanks(0)   Quote gmail Quote  Post ReplyReply Direct Link To This Post Topic: Save state
    Posted: 31 March 2009 at 4:07pm
How can we save state (position, docking state, visibility, etc...) of one CXTPCommandBar ? I know about SaveCommandBars which will save all CXTPCommandBar and I don't need that, I wanna do it selectively...
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: 01 April 2009 at 1:49am
Hello,
 
Sorry, there is no method for single toolbar. you only can save all of them.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
1337Pete View Drop Down
Newbie
Newbie


Joined: 23 June 2010
Status: Offline
Points: 1
Post Options Post Options   Thanks (0) Thanks(0)   Quote 1337Pete Quote  Post ReplyReply Direct Link To This Post Posted: 23 June 2010 at 4:54pm
When using:

GetCommandBars()->SaveBarState(_T("CommandBars"));
and LoadBarState(_T("CommandBars"));
or
SaveCommandBars(_T("CommandBars"));
LoadCommandBars(_T("CommandBars"));

When the load is called it seems to be moving the toolbar above the filemenu.

All I am trying to do is have a default layout for the panes and toolbars which is loaded when the user selects the default layout.

The layout save and load is working correctly but I cannot get the toolbar and filemenu to return to position correctly.
Back to Top
mgampi View Drop Down
Senior Member
Senior Member
Avatar

Joined: 14 July 2003
Status: Offline
Points: 1201
Post Options Post Options   Thanks (0) Thanks(0)   Quote mgampi Quote  Post ReplyReply Direct Link To This Post Posted: 30 November 2010 at 5:38am
Originally posted by 1337Pete 1337Pete wrote:

When using:

GetCommandBars()->SaveBarState(_T("CommandBars"));
and LoadBarState(_T("CommandBars"));
or
SaveCommandBars(_T("CommandBars"));
LoadCommandBars(_T("CommandBars"));

When the load is called it seems to be moving the toolbar above the filemenu.

All I am trying to do is have a default layout for the panes and toolbars which is loaded when the user selects the default layout.

The layout save and load is working correctly but I cannot get the toolbar and filemenu to return to position correctly.


Hi;

have you ever solved this?
How?
I have the same behaviour with skinned app using toolkit 13.4.0


Martin

Product: Xtreme Toolkit v 22.1.0, new Projects v 24.0.0
Platform: Windows 10 v 22H2 (64bit)
Language: VC++ 2022
Back to Top
Willowmaster View Drop Down
Senior Member
Senior Member
Avatar

Joined: 12 July 2010
Location: Netherlands
Status: Offline
Points: 180
Post Options Post Options   Thanks (0) Thanks(0)   Quote Willowmaster Quote  Post ReplyReply Direct Link To This Post Posted: 30 November 2010 at 6:55am
I had a problem when showing toolbars I created to show above the menu. If you look at the toolbar ID it has an ID below 0. If you assign it a value bigger dan 1 (which is the value for the main menu) it wil apear below the menubar.
 
Hope that helps.
Product: Xtreme SuitePro (ActiveX) version 15.3.1

Platform: Windows XP (32bit) - SP 3 (on VMWare)

Language: Visual Basic 6.0



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.211 seconds.