Re: How does a fully transparent window receive mouse event?
Re: How does a fully transparent window receive mouse event?
- Subject: Re: How does a fully transparent window receive mouse event?
- From: James Chen <email@hidden>
- Date: Tue, 25 Dec 2007 17:50:51 +0800
- Thread-topic: How does a fully transparent window receive mouse event?
You are right.
1. I create a window, _MainWindow, with style NSBorderlessWindowMask.
2. And then
[_MainWindow makeKeyAndOrderFront:self];
[_MainWindow setOpaque:NO];
[_MainWindow setBackgroundColor:[NSColor clearColor]];
That's it. :)
Best Regards,
James Chen
Presentation Product Division
TEL: +886 2 22263630 ext 8538
FAX: +886 2 22267241
Mailto: email@hidden
http://www.avermedia.com
AVerMedia Technologies, Inc.
簡報產品事業單位: 陳銘崧
圓剛科技(股)公司
This message contains information that may be confidential and privileged.
Unless you are the addressee (or authorized to receive messages for the
addressee), you cannot use, copy or disclose to any third party or any
information contained in the message. If you have received the message in
error, please advise the sender by reply e-mail and delete the message.
Nothing in this message should be interpreted as a digital or electronic
signature that can be used to authenticate a contract or to other legal
document. Thank you very much.
> From: Uli Kusterer <email@hidden>
> Date: Tue, 25 Dec 2007 10:41:12 +0100
> To: James Chen <email@hidden>
> Cc: Cocoa <email@hidden>
> Subject: Re: How does a fully transparent window receive mouse event?
>
> Am 25.12.2007 um 8:24 schrieb James Chen:
>> I do know how to create a transparent window with alpha value 0.
>> But seems window server never send me the mouse event when the
>> window is
>> fully transparent.
>
>
> Maybe you only think you know? How exactly are you doing it? Maybe
> there's something wrong with the way you're making your window
> transparent. Post some code.
>
> Cheers,
> -- M. Uli Kusterer
> "The Witnesses of TeachText are everywhere..."
> http://www.zathras.de
>
>
>
>
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden