Print Page | Close Window

How to update the color button of toolbar

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=76
Printed Date: 17 May 2024 at 6:40am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: How to update the color button of toolbar
Posted By: monterey
Subject: How to update the color button of toolbar
Date Posted: 23 June 2003 at 8:55pm

Hi all,

I use Xtreme Toolkit to implement my application. I added a color drop down button in the tool box. Everything works fine. However, I need to update color button sometime in the code. For example, when application starts up it shows red color in the color picker button. When I load a document I need the button shows blue color. How to do this?

Thanks in advance.




Replies:
Posted By: Oleg
Date Posted: 28 June 2003 at 2:54pm

for office XP mode use:

#include "../src/XTImageManager.h"
void CMainFrame::SwitchToolBarIcon(UINT nIDFrom, UINT nIDTo)
{
 CXTImage* pImage = XTImageManager()->GetImage(nIDTo, TRUE);
 XTImageManager()->AddIcon(nIDFrom, pImage->GetIcon(), CSize(16, 16), TRUE, TRUE);
}

 

for office 2000 use m_wndToolBar.SetButtonInfo()

 




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