Re: semi-transparent NSScrollView/NSTextView
Re: semi-transparent NSScrollView/NSTextView
- Subject: Re: semi-transparent NSScrollView/NSTextView
- From: Mike Ferris <email@hidden>
- Date: Fri, 13 Dec 2002 12:29:14 -0800
NSTextView, I am pretty sure, does not composite the background. So if
you have it draw any background at all, it will be opaque and any alpha
value is the color will be basically ignored.
You may need to make the text view not draw any background (and the
scroll view if you have one) and then make them all a subview of a
custom view you write that will composite a partially transparent
background color...
Mike
Begin forwarded message:
From: Daniel Delp <email@hidden>
Date: Fri Dec 13, 2002 10:49:17 AM US/Pacific
To: email@hidden, <email@hidden>
Subject: semi-transparent NSScrollView/NSTextView
Is it possible to set the background of either an NSScrollview or
NSTextview to be semi-transparent? I have tried
[textView setDrawsBackground:TRUE];
[textView setBackgroundColor:[NSColor colorWithCalibratedRed: 0.0
green:0.0 blue:0.0 alpha:0.75]];
with the scrollview set the not draw the background, and I tried with
the textview not drawing background and the scrollview drawing the
color. In both tries, the background appeared a solid color.
Thank you
-Daniel Delp
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.