Print Page | Close Window

Multiple designer bars in the same application

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=9530
Printed Date: 01 March 2025 at 11:53am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Multiple designer bars in the same application
Posted By: Smucker
Subject: Multiple designer bars in the same application
Date 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)




Replies:
Posted By: Oleg
Date Posted: 08 February 2008 at 12:52am
Hi,
 
You need set isolated ImageManagers for both CommandBars:
pCommandBars->SetImageManager(new CXTPImageManager());


-------------
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