Re: How to change focus ring color?
Re: How to change focus ring color?
- Subject: Re: How to change focus ring color?
- From: Graham Cox <email@hidden>
- Date: Sun, 2 Aug 2009 16:29:23 +1000
On 02/08/2009, at 7:05 AM, Alexander Bokovikov wrote:
NSSetFocusRingStyle(NSFocusRingOnly);
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.
--Graham
_______________________________________________
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