Print Page | Close Window

How to set the CImageList to the ToolBar

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=6690
Printed Date: 04 March 2025 at 1:51am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: How to set the CImageList to the ToolBar
Posted By: Makarand
Subject: How to set the CImageList to the ToolBar
Date Posted: 21 March 2007 at 7:05am
Hi,
 
I have created the Menu by using m_ToolBar.CreateToolBar(...) and pecifying the number of button by using m_ToolBar.SetButtons(..).
 
Now, I have CImageList and I want to set these image list to the toolbar.
 
How can I set the CImageList to the ToolBar?
 
Please Help Me !
 
Thank You,
Makarand



Replies:
Posted By: Oleg
Date Posted: 22 March 2007 at 2:07am
Hi,
 
add it to global image manager:
 
XTPImageManager()->SetIcons(&m_il, ....);


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: Makarand
Date Posted: 27 March 2007 at 2:14am
Hi Oleg,
 
Thank you for the reply.
I am able to set the Image list by using XTPImageManager()->SetIcons(&
 
I have created the the toolbar below the main toolbar and able to set the image.
 
Now I want to set the remaining area of the toolbar which is not getting refreshed.
 
 
How can I set the remaining background area of the Toolbar?
 
Thank You,
Makarand.


Posted By: Oleg
Date Posted: 27 March 2007 at 5:14am
Hi,
 
Have no idea what "remaining background area" do you mean. Show some screenshot.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: Makarand
Date Posted: 27 March 2007 at 5:21am
Hi,
 
I can see entire toolbar just below the Menubar from extreme left to extreme right of the screen. But the portion of the toolbar where buttons are present or inserted is visible, remaining toolbar area is not getting refreshed.. 
 
How can I send you the snapshot or you got my point?


Posted By: Oleg
Date Posted: 27 March 2007 at 10:48am
Hi,
 
Show me all code you use to create.show toolbar. or may be you can modify our sample to reproduce this problem?


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: Oleg
Date Posted: 27 March 2007 at 10:50am
Hi,
actually why do you use CreateToolBar method to create it ? do you use CXTPCommandBars class ? call pCommandBars->Add instead of CreateToolBar.
 
Please follow our samples.


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