• 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: Disabled button looks like enabled
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Disabled button looks like enabled


  • Subject: Re: Disabled button looks like enabled
  • From: Andy Lee <email@hidden>
  • Date: Mon, 12 Jan 2009 13:11:16 -0500

On Jan 12, 2009, at 12:57 PM, Donnie Lee wrote:
"The button should be disabled by design. It don't intend to interact
with a user at all."

This is exactly the point Ricky was making. If a button never works *by design*, a button is the wrong choice for a UI element

I don't like to discuss ideological part of the thing, I ask only about a technical implementation.

you'd need to override the button's
drawing to always draw the enabled state, ignoring the control's
actual state.

Too "dirty" solution.

What's dirty about it? Note that as soon as you call a solution "dirty" you're dangerously close to discussing ideology.


You defined the problem as wanting a button that is disabled but looks enabled. You yourself said you want the button to draw as if it were enabled despite the fact that it is disabled. The above solution basically echoes your exact requirements, so if it is dirty, then your application design must also be dirty. Why is it not dirty to present a button whose appearance is a lie?

As others have already asked: what are you trying to accomplish? What is the usage scenario you are trying to achieve, and what is its purpose?

If you want a "better" answer (and there may not be one), you need to provide more context.

--Andy




Or, you could let the button allow clicking and simply
do nothing.

As I already did and asked about more beautiful ways. If there is no more beautiful way -- not a big problem.

Donnie.
_______________________________________________

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

_______________________________________________

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


  • Follow-Ups:
    • Re: Disabled button looks like enabled
      • From: "Donnie Lee" <email@hidden>
References: 
 >Disabled button looks like enabled (From: "Donnie Lee" <email@hidden>)
 >Re: Disabled button looks like enabled (From: Ricky Sharp <email@hidden>)
 >Re: Disabled button looks like enabled (From: Luca <email@hidden>)
 >Re: Disabled button looks like enabled (From: "Donnie Lee" <email@hidden>)
 >Re: Disabled button looks like enabled (From: "I. Savant" <email@hidden>)
 >Re: Disabled button looks like enabled (From: "Donnie Lee" <email@hidden>)

  • Prev by Date: Re: Mac Pro memory sizes
  • Next by Date: Re: Bonjour server with multiple clients
  • Previous by thread: Re: Disabled button looks like enabled
  • Next by thread: Re: Disabled button looks like enabled
  • Index(es):
    • Date
    • Thread