[more] Re: Keyboard focus ring is being drawn multiple times
[more] Re: Keyboard focus ring is being drawn multiple times
- Subject: [more] Re: Keyboard focus ring is being drawn multiple times
- From: Matt Gemmell <email@hidden>
- Date: Sun, 26 Jan 2003 18:43:42 +0000
On Sunday, January 26, 2003, at 05:44 pm, Matt Gemmell wrote:
I have an NSButton subclass which doesn't implement -drawRect:, so
that it inherits proper "highlighted" and Fdisabled" appearances and
behaviour, and receives the keyboard focus. My button shows a menu
when it is clicked (using [NSMenu +popUpContextMenu:...]). This all
works fine.
The problem is that, every time the button is clicked, the keyboard
focus ring seems to be drawn yet again, ending up with a thick, ugly
blue "halo" around my button. I've tried using -setNeedsDisplay:YES in
my -mouseUp: handler, but that doesn't help.
Oh, and by the way: I've tried using
-setKeyboardFocusRingNeedsDisplayInRect:, but that doesn't help. My
button is borderless and just shows an image, so the focus-ring is
being drawn around the contours of the image's opaque areas.
Any thoughts?
--
Matt Gemmell
Scotland Software
http://www.scotlandsoftware.com/
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.