Print Page | Close Window

Loading Multiple Designer CommandBars

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=1782
Printed Date: 05 March 2025 at 10:23pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Loading Multiple Designer CommandBars
Posted By: walgar
Subject: Loading Multiple Designer CommandBars
Date Posted: 13 February 2005 at 8:49am

Hi,

I have a small problem with loading of designer CommandBars.

I load designer CommandBars in my main form. Working Ok.

Then I open another form on which I load another designer CommandBars set.

At this point, I lose all the icons in the CommandBars of the main form...

When the mainform refreshes, all button are replaced with text.

 

Any help would be greatly appreciated... Thanks!

 

 




Replies:
Posted By: walgar
Date Posted: 13 February 2005 at 11:50am

Ok, problem solved.

Although the two forms where using two different instances of CXTPCommandBars,

These two where using the same CXTPImageManager instance.

The CXTPCommandBars::LoadDesignerBars flushes the image manager before loading new images from the designer file.

I used CXTPCommandBars::SetImageManager to set a new image manager for the second form.

 




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