FROM : Nathan Day
DATE : Sat Jan 12 21:05:59 2002
You could try substituting the windows content view with your own (the
content view is responsible for the window background pattern) and then
override- [NSView drawRect:(NSRect)aRect] method and use
NSRectFill(const NSRect aRect) to paint in you color containing an alpha
channel. You will probable have to call - [NSWindow
setOpaque:(BOOL)isOpaque] too. You can try using - [NSWindow
setBackgroundColor:(NSColor *)aColor] but my brief experiments with it
have not produced any results.
On Sunday, January 13, 2002, at 01:52 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...
>
DATE : Sat Jan 12 21:05:59 2002
You could try substituting the windows content view with your own (the
content view is responsible for the window background pattern) and then
override- [NSView drawRect:(NSRect)aRect] method and use
NSRectFill(const NSRect aRect) to paint in you color containing an alpha
channel. You will probable have to call - [NSWindow
setOpaque:(BOOL)isOpaque] too. You can try using - [NSWindow
setBackgroundColor:(NSColor *)aColor] but my brief experiments with it
have not produced any results.
On Sunday, January 13, 2002, at 01:52 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...
>
| 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

