![]() |
Multiple designer bars in the same application |
Post Reply ![]() |
Author | |
Smucker ![]() Senior Member ![]() ![]() Joined: 02 February 2008 Status: Offline Points: 156 |
![]() ![]() ![]() ![]() ![]() Posted: 07 February 2008 at 7:26pm |
I have an application with multiple top-level windows; one main (browsing) window and multiple editing windows. When I call LoadDesignerBars() for an editing window (which uses a different frame class, and a different .xcb file from the resource), all of the icons for the main window are gone.
I've tracked it down to a call to CXTPImageManager::RemoveAll() in CXTPImageManager::DoPropExchange, which is called while loading the designer bars. The bars are still there and the buttons in the main window continue to work, but naturally all of the icons are gone. Do I need to somehow set up a second (or more robust) image manager, or can I just remove this call? Am I likely to run into other issues with multiple designer bars in the same application? Forgive me if I'm being dense -- I've only been using your product for a few days! |
|
Product: Xtreme Toolkit Pro version 13.2 (Unicode, static build)
Platform: Windows 200x/XP/Vista/Win7 (32/64 bit) Language: Visual C++ 9.0 (Studio 2008) |
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Hi,
You need set isolated ImageManagers for both CommandBars:
pCommandBars->SetImageManager(new CXTPImageManager());
|
|
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 |