Laurent,

Look into subclassing the view and setting up a tracking area.

Thanks,
Arvin

On 4/29/11 2:16 PM, "Abhinav K Tyagi" <[email protected]> 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 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 i am not sure of.
>
>Thanks
>Abhinav
>On Apr 29, 2011, at 11:30 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, 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
>>
>> I think a circular window, or almost any other shaped window, is a
>> bad idea. That will confuse the user. In a circular window, where is
>> the window title bar?
>>
>> -Laurent.
>> -- 
>> Laurent Daudelin
>> AIM/iChat/Skype:LaurentDaudelin                              
>> http://www.nemesys-soft.com/
>> Logiciels Nemesys Software                                   
>> [email protected]
>>
>
>
>
>_______________________________________________
>
>Cocoa-dev mailing list ([email protected])
>
>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:
>http://lists.apple.com/mailman/options/cocoa-dev/arvin.bhatnagar%40verizon
>.com
>
>This email sent to [email protected]

_______________________________________________

Cocoa-dev mailing list ([email protected])

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to