![]() |
migration from XTP8 to XTP12 |
Post Reply ![]() |
Author | |
lion ![]() Groupie ![]() Joined: 04 March 2008 Status: Offline Points: 22 |
![]() ![]() ![]() ![]() ![]() Posted: 22 September 2008 at 3:43am |
Hi,
I am trying to migrate our app from xtp8 to xtp12. So far that was easy... But now I run into a problem with the "SaveCommandBars(..)" operation. When deleting all app-entries from the registry and starting the app, everything is fine. When stopping the app the onClose(..) calls "SaveCommandBars(..)" saving to the registry. When I restart the app the menus are not the same anymore... Can anyone tell me what has chenged with this operation from 8 to 12 ? Or where to look for more details on this? Cheers B |
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Hi,
If you create all CommandBars in code and not use resources, call
pToolBar->GetControls()->CreateOriginalControls() before you load commandbars.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
lion ![]() Groupie ![]() Joined: 04 March 2008 Status: Offline Points: 22 |
![]() ![]() ![]() ![]() ![]() |
Hi,
thanx for your answer. Meanwhile i found out the following: when I change "SaveCommandBars(..)" in "xtp12\Source\CommandBars\XTPFrameWnd.h" like shown below, calling "SaveBarState(..)" while setting "bOnlyCustomized"=0, then it works: void SaveCommandBars(LPCTSTR lpszProfileName) { if (m_pCommandBars) { m_pCommandBars->SaveOptions(lpszProfileName); //m_pCommandBars->SaveBarState(lpszProfileName); m_pCommandBars->SaveBarState(lpszProfileName,0); m_pCommandBars->GetShortcutManager()->SaveShortcuts(lpszProfileName); } } what do you think about that ? |
|
![]() |
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 |