By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
444,120 Members | 1,799 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 444,120 IT Pros & Developers. It's quick & easy.

Opacity property for MDI child forms...

P: n/a
Hello,

Is there a way to alter the opacity of an MDI child window? I've tried
setting the Opacity property, but it has no effect on the children (fine
for the parent though).

(I want to write an app where I can open several images in child forms,
resize them and manually overlay them on top of each other, and control
the transparency so I can fade from one to the other to visually compare
them).

Thanks,

Gary
Nov 21 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
The Opacity just calls to the Layered Windows api. That api only works with
top level windows - i.e. windows without parents; it won't work with an mdi
window.
--
http://www.khsw-be.net
"beaker" wrote:
Hello,

Is there a way to alter the opacity of an MDI child window? I've tried
setting the Opacity property, but it has no effect on the children (fine
for the parent though).

(I want to write an app where I can open several images in child forms,
resize them and manually overlay them on top of each other, and control
the transparency so I can fade from one to the other to visually compare
them).

Thanks,

Gary

Nov 21 '05 #2

P: n/a
kHSw wrote:
The Opacity just calls to the Layered Windows api. That api only works with
top level windows - i.e. windows without parents; it won't work with an mdi
window.


Hmmm.... can anyone suggest an alternative way I might go about solving
my problem then?

Thanks.
Nov 21 '05 #3

P: n/a
I guess you could try using Windows API's (here's an example:
http://www.planetsourcecode.com/vb/s...44695&lngWId=1)

But I've seen some unpredictable behaviour using MDI's and Transparency like
menu's not refreshing, no close button on the form, ...
--
http://www.khsw-be.net
"beaker" <bl******@rhubarbrhubarbblahblah.net> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
kHSw wrote:
The Opacity just calls to the Layered Windows api. That api only works
with top level windows - i.e. windows without parents; it won't work with
an mdi window.


Hmmm.... can anyone suggest an alternative way I might go about solving my
problem then?

Thanks.

Nov 21 '05 #4

P: n/a
kHSw wrote:
I guess you could try using Windows API's (here's an example:
http://www.planetsourcecode.com/vb/s...44695&lngWId=1)

But I've seen some unpredictable behaviour using MDI's and Transparency like
menu's not refreshing, no close button on the form, ...


Thanks, I'll take a look at that
Nov 21 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.