Link to home
Start Free TrialLog in
Avatar of joepezt
joepezt

asked on

Transparrency

hi!
i was wondering how to make a textbox/Listbox Transparrent
how do i make this possible?

stian
Avatar of edey
edey

What kind of "transparent" attributes do you want?  This can be difficult, depending upon exactly how you want the control to operate.



GL
Mike
Avatar of joepezt

ASKER

i just want to eliminate the background color, so i can have a Timage in the background

please send a reply to my mail adress, stian@nano.no, im leaving home now :)

i get the mail on my cellphone..

stian
Should mention a couple of alt.'s:

-setting the control's canvas.bruh.style to bsClear will cause the control to be "clear", though it won't update properly

-setting the control's windowRGN allows for non-rectangular controls.  If the content doesn't change much you can for the edge of the control around the content.  Thing is, the "transparent" parts aren't really transparent, they just aren't there at all.

-The PaintDesktop function fills the clipping region in the specified device context with the desktop pattern or wallpaper.

-Create on owner draw control & copy whatever you think should be under the control on top of it.

GL
Mike
Avatar of joepezt

ASKER

ok... i'll try this...

though bsClear wont clear anything.. it just marks the entire string...

could you explain hos to use the brush thing and the ownerdraw ?

stian.. thanx for the help :-)
ASKER CERTIFIED SOLUTION
Avatar of mrcalab
mrcalab

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
that's pretty much it


GL
Mike
Avatar of joepezt

ASKER

hmm.. i was using a edit box, and it says paint is not defined in the Base Class...

where do i earn points?

stian