FROM : Andre Lipinski
DATE : Sat Jan 12 22:12:00 2002
On Saturday, January 12, 2002, at 10:22 PM, Wade Tregaskis wrote:
> Is it possible to adjust the transparency of individual areas of a window
> separately? E.g. if I have a text label or field, can I make the
> majority of the window transparent, but the text field opaque? I ask
> because I'd like to use transparency only on areas that aren't textual,
> so that my app remains fully functional while offering back some screen
> space...
>
Hi,
If you want text fields and etc. floating in space, that's real easy, just
make a completely transparent window and fill it with the controls you
want (use NSWindow setOpaque:). I'm betting you want a translucent window
where the controls are opaque and the window background is only partly
opaque. I don't know about getting a standard Aqua window that's partly
opaque, but you could use a custom design of your own in the form of a
tiff image with lots of translucency. Put that image in a window as the
background in IB drop your controls on top of it and set its opacity.
Otherwise you can go with setAlphaValue:, which sounds like what you've
already tried right?
Andre.
DATE : Sat Jan 12 22:12:00 2002
On Saturday, January 12, 2002, at 10:22 PM, Wade Tregaskis wrote:
> Is it possible to adjust the transparency of individual areas of a window
> separately? E.g. if I have a text label or field, can I make the
> majority of the window transparent, but the text field opaque? I ask
> because I'd like to use transparency only on areas that aren't textual,
> so that my app remains fully functional while offering back some screen
> space...
>
Hi,
If you want text fields and etc. floating in space, that's real easy, just
make a completely transparent window and fill it with the controls you
want (use NSWindow setOpaque:). I'm betting you want a translucent window
where the controls are opaque and the window background is only partly
opaque. I don't know about getting a standard Aqua window that's partly
opaque, but you could use a custom design of your own in the form of a
tiff image with lots of translucency. Put that image in a window as the
background in IB drop your controls on top of it and set its opacity.
Otherwise you can go with setAlphaValue:, which sounds like what you've
already tried right?
Andre.
| Related mails | Author | Date |
|---|---|---|
| Wade Tregaskis | Jan 12, 19:25 | |
| Nathan Day | Jan 12, 21:05 | |
| Andre Lipinski | Jan 12, 22:12 |






Cocoa mail archive

