![]() |
CXTPPropertyGridInplaceButton bitmap not showing |
Post Reply
|
| Author | |
vsn9
Groupie
Joined: 21 September 2009 Status: Offline Points: 11 |
Post Options
Thanks(0)
Quote Reply
Topic: CXTPPropertyGridInplaceButton bitmap not showingPosted: 22 September 2009 at 4:24am |
|
Hi,
I am trying to add an image to a CXTPPropertyGridInplaceButton object. I am trying to get it to work using code from GridSample (PropertyGrid_vc90.sln). The image doesn't show up. The only thing different is that I derived classes from CXTPPropertyGrid and CXTPPropertyGridItem and used them.
I have also tried adding a bitmap to the sample((PropertyGrid_vc90.sln) and using it in place of IDB_BITMAP_FILTER, however the new bitmap doesn't show up on the button in the sample either.
help!
|
|
|
Product: Xtreme Toolkit Pro v12.1
Platform: Windows XP SP2 Language: Visual C++ 2008 SP1 |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 23 September 2009 at 3:53am |
|
Hi,
Attach modified sample.
|
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
vsn9
Groupie
Joined: 21 September 2009 Status: Offline Points: 11 |
Post Options
Thanks(0)
Quote Reply
Posted: 23 September 2009 at 6:20am |
|
Hi Oleg,
It was an issue with the bitmap, Looks like the background color of a Bitmap doesnt show up when you add it to a button. uploads/20090923_061907_GridSample.rar
Thanks
Vikram
|
|
|
Product: Xtreme Toolkit Pro v12.1
Platform: Windows XP SP2 Language: Visual C++ 2008 SP1 |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 23 September 2009 at 8:57am |
|
Hi,
Yes, if mask color was not set ImageManager assumes topleft pixel is mask. Just set some color as mask before set:
m_wndPropertyGrid.GetImageManager()->SetMaskColor(0xFF00FF);
|
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
oren_miron
Newbie
Joined: 20 September 2005 Location: Israel Status: Offline Points: 1 |
Post Options
Thanks(0)
Quote Reply
Posted: 31 October 2010 at 10:43am |
|
Hi
i am also trying to draw an image on an in place button of a property grid. i am not using a grid and i guess u already have a code for doing it in a property grid. can u explain how to do it? oren.
|
|
![]() |
|
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 |