• 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: Highlighting a momentary change button
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Highlighting a momentary change button
      • From: Andreas Mayer <email@hidden>
References: 
 >Highlighting a momentary change button (From: Kevin Smith <email@hidden>)

  • Prev by Date: Re: Cross platform development
  • Next by Date: Mac OS X market share vs. Mac OS 9...
  • Previous by thread: Highlighting a momentary change button
  • Next by thread: Re: Highlighting a momentary change button
  • Index(es):
    • Date
    • Thread