Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic replace picture (Read 1778 times)
allen
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 1
Joined: Jan 4th, 2008
replace picture
Jan 6th, 2008 at 1:10pm
Print Post  
Hi,
I used the LoadPicFromRes method to put a picture to the box control.But now I want the gray the picture of the box control that means the box control is unavailable.that is to say, how to load a grayed bitmap to replace the original bitmap,
???

Thanks
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: replace picture
Reply #1 - Jan 7th, 2008 at 6:46am
Print Post  
Hi,

If you are using GDI+, you could overlay the box with another box whose FillColor is set to gray and FillColorAlpha is < 255, say 100. If the users must be able to interact with the 'unavailable' boxes, use a Group object to attach the overlay box to the picture box.

Another possibility is to use custom drawing and draw on the HDC / Graphics surface. Yet another one is to keep two versions of the image - a normal one and a grayed one.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint