Button confusion
Button confusion
- Subject: Button confusion
- From: Darrin Cardani <email@hidden>
- Date: Tue, 1 Jun 2004 12:14:32 -0500
I'm confused about how buttons with custom icons are supposed to
work. I have several buttons in a window. They are square buttons
without a border, and they have an icon and an alternate icon. They
are set to "Momentary Change". Initially, the buttons are disabled,
but through user actions can become enabled and disabled again.
When the window is first displayed, the disabled buttons are showing
their alternate icon. This is the icon I want displayed when the
button is pressed, not when it is disabled. And once they are
enabled, they work the way I expect. They show their regular icon,
until the user presses them, then they show their alternate, until
the user lets up, at which time they show their regular icon again.
Once they are disabled again, they appear not to be disabled at all,
but simply don't react to presses.
If, after the window is initially displayed, the first thing I do is
change the window size, the disabled buttons suddenly change from
showing their alternate icons to showing their regular icons (and not
in a disabled state, despite the fact that they are disabled).
Sometimes I see the button superimposed over a lighter copy of itself
when dragging left to right (which causes the buttons to change
positions).
What's interesting is that I haven't yet included the alternate icons
for some of the buttons. Those buttons get the proper disabled look
initially, and after being enabled and disabled again. But of course,
they show nothing when pressed, as the alternate icon isn't present.
I realize this is all kind of confusing so here are some pictures:
<
http://www.buena.com/darrin/bizarrebuttons.html>
So how do I get the button to display its enabled non-pressed look
when enabled, its enabled pressed look when pressed, and its disabled
look when disabled, consistently? And how do I get the buttons to
show their true state initially when the window is displayed?
Thanks,
Darrin
--
Darrin Cardani - email@hidden
President, Buena Software, Inc.
<
http://www.buena.com/>
Video, Image and Audio Processing Development
_______________________________________________
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.