Re: How to change focus ring color?
Re: How to change focus ring color?
- Subject: Re: How to change focus ring color?
- From: Rob Keniger <email@hidden>
- Date: Sun, 2 Aug 2009 17:06:32 +1000
On 02/08/2009, at 4:29 PM, Graham Cox wrote:
I may be wrong, but my understanding was that this sets up some sort
of special mode in the graphics context that draws the focus ring as
a special case. If you notice, the ring is not a simple solid colour
but some kind of gradient. I also think that it doesn't matter what
colour you set, it will be ignored and the focus ring drawn by the
graphics system using the colour internally set (by the current
theme effectively, but that can't be changed).
The short answer is - you cannot do what you are trying to do. If
you must have a custom focus ring colour (why?) then you will have
to draw it entirely yourself and avoid setting this special mode.
You are entirely correct, this has been my experience.
In general it's best to avoid drawing your own focus ring if at all
possible, there's a fair bit of "magic" going on when you call
NSSetFocusRingStyle(NSFocusRingOnly) because it draws outside the
control's frame.
--
Rob Keniger
_______________________________________________
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