Print Page | Close Window

Error in Ribbon sample

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=6971
Printed Date: 12 November 2025 at 5:38pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Error in Ribbon sample
Posted By: AlexXF
Subject: Error in Ribbon sample
Date Posted: 25 April 2007 at 3:13am

Dear developers, please fix your 'Ribbon' sample.

I've spend all day to find this error, why i can't set Hot/Pressed/Disabled image for CXTToolbarSystemButton.
 
file: MainFrame.cpp
 
Was been:

pControlFile->SetIconId(IDB_GEAR);
UINT uCommand = {IDB_GEAR};

pCommandBars->GetImageManager()->SetIcons(IDB_GEAR, &uCommand, 1, (CSize)0, xtpImageNormal);

CORRECT:

pCommandBars->GetImageManager()->SetIcons(IDR_GEARHOT, &uCommand, 1, (CSize)0, xtpImageNormal);




Replies:
Posted By: AlexXF
Date Posted: 25 April 2007 at 3:14am
Oh... make an error in 'Was been section'
 
Was been:
 
pCommandBars->GetImageManager()->SetIcons(IDB_GEAR, &uCommand, 1, xtpImageNormal);
 
Correct:
pCommandBars->GetImageManager()->SetIcons(IDB_GEAR, &uCommand, 1, (CSize)0, xtpImageNormal);


Posted By: Oleg
Date Posted: 25 April 2007 at 6:47am
Thanks, you right. Changed.

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