![]() |
How to change the Button's Icon dynamically? |
Post Reply
|
| Author | |
Rebecca
Newbie
Joined: 17 October 2007 Status: Offline Points: 6 |
Post Options
Thanks(0)
Quote Reply
Topic: How to change the Button's Icon dynamically?Posted: 25 October 2007 at 2:18am |
|
I am using Xtreme ToolkitPro v11.2.0 for Visual Studio 2005.
I have created a xtpControlButton with the Icon in a XTPRibbonGroup.
CXTPRibbonGroup* pGroupScan = pTabFile->AddGroup(_T("File"));
pGroupScan->Add(xtpControlButton,ID_FILE_SCAN);
How to change this button's Icon dynamically. Thank you!
|
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 25 October 2007 at 4:27am |
|
Hi, Add update handler for ID_FILE_SCAN command and this codeCXTPControl* pButton = CXTPControl::FromUI(pCmdUI);
if (pButton ) { pButton ->SetIconId(m_bNiceIcon ? ID_FILE_SCAN_NICDE : ID_FILE_SCAN); } |
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
Post Reply
|
|
|
Tweet
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |