Watermark in listbox

Forums for specific tips, techniques and example code
ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Watermark in listbox

Postby ConvertFromOldNGs » Fri Aug 07, 2009 2:35 pm

by ssslinky_sssinky >> Tue, 4 Dec 2001 1:04:33 GMT

Hey, I want a watermark or pic in a list box, but still want the list box to be able 2 be clicked on and stuff. I tried putting a pic behind it, but cant make the list box transparent. Can anyone help me out?

Cheers
Aaron

ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Re: Watermark in listbox

Postby ConvertFromOldNGs » Fri Aug 07, 2009 2:35 pm

by CarlRanson >> Tue, 4 Dec 2001 20:20:01 GMT

You could probably do a bitblit to add your picture on top from the listbox_paint method so that it looks like it is drawn behind.

Can't remember the exact details of the drawing operations, but you would have to merge it so it only draws where the background is white.

It's a bit tricky to setup but should work well. Helps if you've got friends that are game programmers :)

CR


Return to “Tips and Techniques”

Who is online

Users browsing this forum: No registered users and 26 guests