Print Page | Close Window

How can I Change the Icon of the toolbar button?

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=8220
Printed Date: 20 June 2025 at 1:57pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: How can I Change the Icon of the toolbar button?
Posted By: Makarand
Subject: How can I Change the Icon of the toolbar button?
Date Posted: 29 September 2007 at 5:34am
My previous code is as follow-->
_________________________________________________________________________________

CXTImage* pImage =XTImageManager()->GetImage(IDMMAGNETFULL,TRUE);
XTImageManager()->AddIcon(IDMMAGNET,pImage->GetIcon(),m_TBImgSize,TRUE,TRUE);
_________________________________________________________________________________

Please give me replacement code to set image to the button.
Please help me !



Replies:
Posted By: Oleg
Date Posted: 30 September 2007 at 9:08am
Hi,
Set Icons to XTPImageManager(). See methods of CXTPImageManager class.


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


Posted By: Makarand
Date Posted: 01 October 2007 at 1:58am
How to add Bitmap to Resource?


Posted By: Oleg
Date Posted: 01 October 2007 at 6:00am
???
See [app].rc file - you can add them manually or using visual studio resource editor.


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


Posted By: Makarand
Date Posted: 01 October 2007 at 7:40am
What is replacement function of XTImageManager()->AddIcon

XTImageManager()->AddIcon(IDMSTATUSHISTORYERROR,ilTemp->ExtractIcon(1), m_TBImgSize, TRUE, TRUE);



Posted By: Oleg
Date Posted: 01 October 2007 at 8:38am
XTPImageMaanger()->SetIcon.

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