Print Page | Close Window

Save state

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=13880
Printed Date: 01 May 2025 at 11:28am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Save state
Posted By: gmail
Subject: Save state
Date 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...



Replies:
Posted By: Oleg
Date 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


Posted By: 1337Pete
Date 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.


Posted By: mgampi
Date 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


Posted By: Willowmaster
Date 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






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