Print Page | Close Window

CXTPPropertyGridInplaceButton bitmap not showing

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Property Grid
Forum Description: Topics Related to Codejock Property Grid
URL: http://forum.codejock.com/forum_posts.asp?TID=15221
Printed Date: 21 November 2024 at 5:48pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: CXTPPropertyGridInplaceButton bitmap not showing
Posted By: vsn9
Subject: CXTPPropertyGridInplaceButton bitmap not showing
Date Posted: 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



Replies:
Posted By: Oleg
Date Posted: 23 September 2009 at 3:53am
Hi,
 
Attach modified sample.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: vsn9
Date 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.  http://forum.codejock.com/uploads/20090923_061907_GridSample.rar - uploads/20090923_061907_GridSample.rar
 
Thanks
Vikram


-------------
Product: Xtreme Toolkit Pro v12.1
Platform: Windows XP SP2
Language: Visual C++ 2008 SP1


Posted By: Oleg
Date 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


Posted By: oren_miron
Date 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.



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