• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: focus ring around button
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: focus ring around button


  • Subject: Re: focus ring around button
  • From: Ruben Smits <email@hidden>
  • Date: Tue, 17 Feb 2004 14:14:13 +0100

The textfield has the focus, implemented with IB defaults. (Kind of shadow, not blue)

What I ment was to draw a blue focusring around the button, to indicate this will act on the <ALT-ENTER> as default button.
Since Apple is using it in the OSX-installer, I guess we might assume this is according to Aqua HIG.

Your suggestion would be to keep the OK-button "normal gray", without any special indication of the behavior?

On 17 feb 2004, at 14:02, Alastair Houghton wrote:

On 17 Feb 2004, at 12:50, Ruben Smits wrote:

I guess you're right about the path around buttons, this might be hard to find out. :-(

I have a panel in my application with a textField, and an OK-button to dismiss the panel. So this is a kind of default button.

However, when user presses <ENTER>, the textField is firstResponder and a "newline" is inserted. I would like to keep this behavior.
When user presses <ALT+ENTER>, OSX preforms the action of the default button, in my case the OK-button.

So, since the default button does not react on the <ENTER> but does react on the <ALT+ENTER>, it seems fair to draw a focusring for the button, instead of displaying the default button in blue.

In the OSX installer there's a focusring for the OK-button, but as I understand from you there's no option in the framework yet?

Not that I've seen. That doesn't mean that there isn't a way to do it, just that I don't know how either :-)

I'm not 100% certain that it's an appropriate way to highlight the button in any case; the text field has the focus, so should have a focus ring. Making the button have a focus ring as well would be confusing, I think. Probably against the Apple HIG as well.

Kind regards,

Alastair.



-----------
Ruben
-----------
_______________________________________________
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.

  • Follow-Ups:
    • Re: focus ring around button
      • From: Glen Simmons <email@hidden>
References: 
 >focus ring around button (From: Ruben Smits <email@hidden>)
 >Re: focus ring around button (From: Alastair Houghton <email@hidden>)
 >Re: focus ring around button (From: Ruben Smits <email@hidden>)
 >Re: focus ring around button (From: Alastair Houghton <email@hidden>)
 >Re: focus ring around button (From: Ruben Smits <email@hidden>)
 >Re: focus ring around button (From: Alastair Houghton <email@hidden>)

  • Prev by Date: Re: NSEnumerator doesn't support NSCopying - why?
  • Next by Date: Re: Plug-in?
  • Previous by thread: Re: focus ring around button
  • Next by thread: Re: focus ring around button
  • Index(es):
    • Date
    • Thread