translucent form

inighthawki
04-14-2006, 03:34 PM
is there a way to make a form translucent without setting the opacity, by having the opacity on, it makes all the controls translucent too, i was looking to try and remake the vista aero type style with a translucent glass part of the form while retaining full opaque controls. thx in advance...

vbtricks
04-18-2006, 10:05 AM
Salut,

this feature is implemented using the SetLayeredWindowAttributes (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/winui/windowsuserinterface/windowing/windows/windowreference/windowfunctions/setlayeredwindowattributes.asp) api function.

As this underlying function does not seem to support your desired effect either, the only way will be to capture the background of the form, apply the desired effect using paint function and set the created bitmap as background of the form.

Seems not like a workable solution either.


Stefan

inighthawki
04-18-2006, 09:11 PM
ok thx ill look at that, what ive tried so far is to use a background form with a low opacity and have owned forms on it that are 100% opaque, but its not working out too well :P

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum