SetLayout - Version conflict |
Post Reply |
Author | |
MGebler
Groupie Joined: 18 May 2006 Location: Germany Status: Offline Points: 64 |
Post Options
Thanks(0)
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
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
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 |
|
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 |