Round Buttons Accept Mouse Presses Outside Visible Area
Round Buttons Accept Mouse Presses Outside Visible Area
- Subject: Round Buttons Accept Mouse Presses Outside Visible Area
- From: Henry McGilton <email@hidden>
- Date: Tue, 22 Mar 2005 10:06:41 -0800
I noticed this odd behaviour of round NSButtons ---- that is,
an NSButton with NSCircularBezelStyle set so that the button's
appearance is circular.
The rect of the button is, obviously, a rectangular area that
encloses the visible round shape.
However, I notice that you can click the mouse outside of the
visible round area, and still get a mouse even if the mouse is
within the rect of the button.
I am not sure if this could be considered a 'bug' or a
'feature', but I find the behaviour a little annoying.
I am thinking maybe to create a sub-class that decides if
the mouse down event is within the visible circular area.
Regards,
........ Henry
===============================+============================
Henry McGilton, Boulevardier | Trilithon Software
Objective-C/Java Composer | Seroia Research
-------------------------------+----------------------------
mailto:email@hidden | http://www.trilithon.com
|
===============================+============================
_______________________________________________
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