![]() |
Problem Status bar icon |
Post Reply
|
| Author | |
rocco
Newbie
Joined: 01 December 2003 Status: Offline Points: 8 |
Post Options
Thanks(0)
Quote Reply
Topic: Problem Status bar iconPosted: 15 November 2006 at 9:23am |
|
Since I upgraded to 10.x, icons in the statusbar have no longer transparent background. Nothig has changed in my code. Do I something wrong?
|
|
![]() |
|
pascal
Groupie
Joined: 07 February 2005 Location: Germany Status: Offline Points: 25 |
Post Options
Thanks(0)
Quote Reply
Posted: 16 November 2006 at 5:15pm |
|
Set the incon index for the pane in which you want to show the icon. 1. retrieve the pane index:
int nIndex = CommandToIndex(ID_INDICATOR_THEPANE);
ASSERT( nIndex != -1 ); 2. retrieve the pane object
CXTPStatusBarPane* pPane = GetPane(nIndex); 3. set the icon index
pPane->SetIconIndex(uCommandID);
Note uCommandID is a resource ID. An icon must be mapped to this ID. The is the case for toolbar buttons, menus etc. To create a map, you can use e.g. the method XTPImageManager()->SetIcons( ... ).
regards
pascal
|
|
|
Pascal Verdier
Software Engineer Manager |
|
![]() |
|
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 |