Re: Arbitrary Shaped Windows
Re: Arbitrary Shaped Windows
- Subject: Re: Arbitrary Shaped Windows
- From: John Joyce <email@hidden>
- Date: Fri, 29 Apr 2011 13:17:43 -0500
On Apr 29, 2011, at 11:46 AM, Abhinav K Tyagi wrote:
> Hi,
>
> How can i create an arbitrary shaped window? Mouse events should be
> handled in the shape only and not the rectangular window portion.
> For Ex. If my window is circular, then outside the circle, any mouse should
> go to desktop or whatever is there behind it.
> Using borderless and transparent mainwindow i can only display it circular
> but mouse events still be there in rectangular region which i want to
> be only in circular (or whatever defined) region.
> If anyone can suggest the best possible way to do it would be great.
>
> After this is done, i would like to dynamically change the window shape
> depending on user inputs
> Thanks in Advance
>
>
> Abhinav K Tyagi
> email@hidden
>
The first place to start tinkering is with the sample code Round Transparent Window on the devcenter.
_______________________________________________
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