Re: Arbitrary Shaped Windows

2011-04-29 Thread Hank Heijink (Mailinglists)
Have you looked at this? http://cocoawithlove.com/2008/12/drawing-custom-window-on-mac-os-x.html Hank On Apr 29, 2011, at 2:16 PM, Abhinav K Tyagi wrote: > Hi Laurent, > > I too agree with you on this. The circular shape i just mention as a case. > It can be any shape. > > Its just an idea..

Re: Arbitrary Shaped Windows

2011-04-29 Thread Bhatnagar, Arvin
Laurent, Look into subclassing the view and setting up a tracking area. Thanks, Arvin On 4/29/11 2:16 PM, "Abhinav K Tyagi" wrote: >Hi Laurent, > >I too agree with you on this. The circular shape i just mention as a >case. >It can be any shape. > >Its just an idea.. good or bad will depend on

Re: Arbitrary Shaped Windows

2011-04-29 Thread Fritz Anderson
On 29 Apr 2011, at 11:46 AM, Abhinav K Tyagi wrote: > How can i create an arbitrary shaped window? Look for the sample project "RoundTransparentWindow." I found it by typing "round window" in the Documentation organizer in Xcode 4. The Documentation browser in Xcode 3 should turn up the same th

Re: Arbitrary Shaped Windows

2011-04-29 Thread John Joyce
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

Re: Arbitrary Shaped Windows

2011-04-29 Thread Abhinav K Tyagi
Hi Laurent, I too agree with you on this. The circular shape i just mention as a case. It can be any shape. Its just an idea.. good or bad will depend on how and when one finds its application. I remember that MSVC++ had a similar thing to set the "shape" of the window but here how to do

Re: Arbitrary Shaped Windows

2011-04-29 Thread Philip Ershler
On Apr 29, 2011, at 12:00 PM, Laurent Daudelin wrote: > On Apr 29, 2011, at 09:46, 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,

Re: Arbitrary Shaped Windows

2011-04-29 Thread Laurent Daudelin
On Apr 29, 2011, at 09:46, 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 what

Arbitrary Shaped Windows

2011-04-29 Thread Abhinav K Tyagi
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 m