![]() |
CXTButton & Icons |
Post Reply
|
| Author | |
jimmy
Senior Member
Joined: 11 November 2003 Location: Austria Status: Offline Points: 516 |
Post Options
Thanks(0)
Quote Reply
Topic: CXTButton & IconsPosted: 23 November 2006 at 2:15pm |
|
Hello,
i've a static CXTPImageManager if (s_FileItemImages.GetImages()->GetCount() == 0 ) { s_FileItemImages.SetMaskColor(RGB(0,255,255)); s_FileItemImages.SetIcons(IDB_GRIDITEMFILE, 0, 3, CSize(12, 12)); } the bitmap has 3 pictures and has a size from 35x12 pixel. Now i like to set this Icon to a CXTButton m_wndSave.SetIcon(CSize(12,12), s_FileItemImages.GetImage(0,12)->GetIcon()); This will work. But m_wndLoad.SetIcon(CSize(12,12), s_FileItemImages.GetImage(1,12)->GetIcon()); does not show a icon into the button. Why ? Jimmy |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 24 November 2006 at 4:00am |
|
Hi,
I think problem can be in size of bitmap. If must be 36*12 (not 35*12)...
|
|
|
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 |