Trasparent window and TextView
Trasparent window and TextView
- Subject: Trasparent window and TextView
- From: Lorenzo <email@hidden>
- Date: Tue, 17 Jan 2006 17:02:57 +0100
Hi,
I programmatically allocate a window with trasparent background then I put a
trasparent NSScrollView with a trasparent NSTextView within this window.
So the RTF text I write into the NSTextView looks like over the other
windows and objects I can see under my trasparent window. Good result.
The problem is that if I set the NSTextView background totally transparent
with
backColor = [NSColor colorWithCalibratedWhite:0.0 alpha:0.0];
[textView setBackgroundColor:backColor];
when I click on a trasparent point of the NSTextView, automatically I get
selected the application under my window. It's like the NSTextView doesn't
feel the clicks anymore. Instead if I click just on a string within the
NSTextView I can quite select the string. To avoid this problem I have to
set a backColor with alpha = 0.05 or higher. Not so good because the user
can change this color.
How can I make my trasparent NSTextView detect the clicks even when clicking
on a trasparent point?
Best Regards
--
Lorenzo
email: email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden