Re: Highlighting a momentary change button
Re: Highlighting a momentary change button
- Subject: Re: Highlighting a momentary change button
- From: Andreas Mayer <email@hidden>
- Date: Wed, 6 Aug 2003 23:55:49 +0200
Am Mittwoch, 06.08.03 um 20:56 Uhr schrieb Kevin Smith:
I have momentary change buttons with just an image and no background
color (like in the Safari toolbar). I want to be able to make them
act like push on/push off buttons by programatically turning on the
highlight whenever the button is clicked. I do this by sending the
'highlight' message to the button in its action method. This seems to
have no effect. Is there a way to do this?
It seems that highlight is normaly only true when the mouse is over the
button and the mouse button is held down.
Try setting state to NSOnState.
I also just updating my AMShapedButton class to work with On/Off type
buttons (current version can be found here:
<
http://www.harmless.de/cocoa.html#shbt>).
bye. Andreas.
_______________________________________________
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.