Print Page | Close Window

CXTPStatusBar - Icons

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=10424
Printed Date: 01 March 2025 at 6:06am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: CXTPStatusBar - Icons
Posted By: Kenneth
Subject: CXTPStatusBar - Icons
Date Posted: 30 April 2008 at 12:52pm
When I select the CCustomOffice2007Theme, the icons I display on the StatusBar is centered in the pane.  However when I select the CXTPRibbonTheme, the icons are right justified in the pane.  The same is true for bitmaps.  See image below:
 
 
How do I center the icons in the pane in CXTPRibbonTheme?
 
Also, in versions prior to 12, I set the icon width by:
 
m_wndStatusBar.SetPaneWidth(nIndex,XTAuxData().cxSmIcon);
 
In version 12.0 I have to use:
 
m_wndStatusBar.SetPaneWidth(nIndex,XTAuxData().cxSmIcon+4);
 
Why is the extra 4 pixels needed?



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