Print Page | Close Window

SetLayout - Version conflict

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Docking Pane
Forum Description: Topics Related to Codejock Docking Pane
URL: http://forum.codejock.com/forum_posts.asp?TID=10035
Printed Date: 12 December 2024 at 8:05pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: SetLayout - Version conflict
Posted By: MGebler
Subject: SetLayout - Version conflict
Date Posted: 02 April 2008 at 8:22am
Hi
I am storing the panelayout inside my documents using:
 
CXTPDockingPaneLayout* pLayout = 
  GetPaneManager()->CreateLayout();
CArchive ar( pMemFile, CArchive::load );
pLayout->Serialize( ar );
GetPaneManager()->SetLayout( pLayout );
 
I have done this with all versions since v10...
Now, using the beta version v12.0.0, there is a compatibility problem.
 
Inside the CXTPDockingPaneTabbedContainer::DoPropExchange method you are loading the "Maximized" boolean value if
GetSchema() returns a value greater _XTP_SCHEMA_1122 allthough the layout information was stored using version 11.2.2.
 
If I overwrite the Schema value with _XTP_SCHEMA_1122 inside the method
 
void CXTPDockingPaneLayout::Serialize(CArchive& ar)
{
    CXTPPropExchangeArchive px(ar);
    // Force Value m_nSchema to 32
    DoPropExchange(&px);
}
 
the loading is ok. 
 
With best regards
  Marcus
 



Replies:
Posted By: Oleg
Date Posted: 02 April 2008 at 8:48am
Thanks, you are right. beta release gives good results :)
 
Please just replace
 
secSummary->ExchangeSchema
 
to
 
pPX->ExchangeSchema();
 
in both _Save and _Load methods.
 
 
Fixed for final 12.0 release.


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



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