Print Page | Close Window

Showing icon in CXTPStatusBar pane

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=18686
Printed Date: 19 June 2025 at 1:31pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Showing icon in CXTPStatusBar pane
Posted By: rapid
Subject: Showing icon in CXTPStatusBar pane
Date Posted: 18 July 2011 at 9:31am
I am creating status bar by subclassing to this XTP class CXTPStatusBar pan.

I want to show icon in one of its pane.

I've loaded icon into image list and tried setting something like this:

m_wndStatusBar.GetImageManager()->SetImageList(m_il, OBS_XT_LARGEICON);
m_wndStatusBar.GetPane(2)->SetIconIndex(0);
But the pane is still showing the text only. Do I need to change its style to something, any example code in samples..

Thanks in advance...




Replies:
Posted By: Oleg
Date Posted: 19 July 2011 at 1:47am
Hi,

Instead SetImageList, use SetIcons - SetIcons::(CImageList& imlIcons, UINT* pCommands, int nCount, CSize szIcon, XTPImageState imageState)





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