Making NSButtons show their state
Making NSButtons show their state
- Subject: Making NSButtons show their state
- From: "Phil Barrett" <email@hidden>
- Date: Wed, 11 Jul 2001 12:31:19 +0100
I'm using an NSButton with an image on it to act as a check box
(NSToggleButton or NSPushOnPushOffButton types). I want the button to show
its state so that the user can see when the box is checked.
If I use bezels, then I can find no way of getting the button to look like
it's pressed in at all. It merely shows its state by changing the background
colour to grey, which isn't clear enough.
If I use borders, then the button doesn't look like Aqua, but it DOES press
in when I click it. Trouble is, it doesn't stay pressed in, despite
everything the documentation says about NSToggleButton and
NSPushOnPushOffButton. (Also, it has a transparent background, but that's
another issue...)
Any ideas? I'll take any of the following:
1. A way to make Aqua buttons look pressed in
2. A way to make Aqua buttons highlight in blue (i.e. the same colour as
other controls), not grey
3. A way to make non-Aqua bordered buttons look pressed in (when they're not
being clicked)
NB this is all done in code, without IB.
Phil
--
Phil Barrett - CTO - Cambridge Animation Systems