• 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: Shiny little square buttons
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Shiny little square buttons


  • Subject: Re: Shiny little square buttons
  • From: Jeremy Dronfield <email@hidden>
  • Date: Sun, 2 Jul 2006 14:40:02 +0100

On 2 Jul 2006, at 12:54 pm, Nik Youdale wrote:

I am trying to make an inspector window similar to the one in Pages using a row of buttons at the top to select panes. However, I can not work out how to get the blue highlighting effect on these buttons.


The small square bezel buttons are perfect for this, except I can't make them go blue! I realize that pages uses images for their buttons, but I was looking for a way without making 3 or 4 images for each button.

Any ideas?

The inspector tabs in Pages are an NSMatrix of NSButtonCells using (in most cases) only 2 images for each cell - "normal" and "selected".


(Personally, if I were doing this, I'd dispense with the background images and draw the gradients in code in a custom cell subclass. The reason being re-usability - it's easier to vary the colours, sizes and background shapes for different requirements.)

Regards,
Jeremy
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Shiny little square buttons
      • From: Nik Youdale <email@hidden>
References: 
 >Shiny little square buttons (From: Nik Youdale <email@hidden>)

  • Prev by Date: Shiny little square buttons
  • Next by Date: Re: Selected range in bound text view
  • Previous by thread: Shiny little square buttons
  • Next by thread: Re: Shiny little square buttons
  • Index(es):
    • Date
    • Thread