![]() |
9.70: CXTPStatusBar and SetIcon |
Post Reply
|
| Author | |
aledh
Newbie
Joined: 10 January 2006 Location: United Kingdom Status: Offline Points: 5 |
Post Options
Thanks(0)
Quote Reply
Topic: 9.70: CXTPStatusBar and SetIconPosted: 11 January 2006 at 5:48am |
|
My application previously used Xtreme Toolkit V9.51, but has since been updated to use V9.70. However, I've noticed a problem with the status bar: I try to assign an icon to some of the status bar panels (such that I get an icon to the left of the text within the panel). This worked fine with V9.51, but it seems the icons are no longer drawn in V9.70.
Here is an example of the code located in CMainFrame::OnCreate():
Identical code under XTP9.51 works fine. Looking inside CXTPStatusBar::OnPaint() source code (in particular the paintmanager), I see no code for doing the icon. Is this a fault in V9.70 and if so, is it corrected on later versions. Or perhaps am I doing things wrong. I'm developing under VC++ 6.0 by the way. |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 11 January 2006 at 11:17am |
|
Hello, CXTPStatusbar of 9.70 not supported icons, you can simple replace CXTPStatusBar to CStatusBar. In 9.81 you can use CXTPStatusBarPane::SetIconIndex method. |
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
aledh
Newbie
Joined: 10 January 2006 Location: United Kingdom Status: Offline Points: 5 |
Post Options
Thanks(0)
Quote Reply
Posted: 12 January 2006 at 5:10am |
|
Thanks Oleg,
I've switched back to CStatusBar for now as I don't yet have V9.81 (although this did mean a few code tweaks and a slightly different visual style). Aled. |
|
![]() |
|
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 |