Re: Flat Button Controls in Tiger
Re: Flat Button Controls in Tiger
- Subject: Re: Flat Button Controls in Tiger
- From: SA Dev <email@hidden>
- Date: Fri, 1 Jul 2005 19:43:13 -0400
Andreas:
Boy you're really pushing your rollover button these days, aren't
you? ;-)
In any case, you're right about the square buttons in Tiger. I
just tested it. It scales beautifully. Now it's the membrane buttons
I've got my sites locked onto. If Apple sets trends like this, I
don't see why they don't make them accessible to developers; they
should already know we're going to blatantly plagiarize, so why not
help us make OS X apps consistent? Anyway, old argument.
Building buttons based on graphics is no problem for me
personally. I have a number of pro-app-looking buttons in production
apps already. The appealing aspect for me personally is the Core
Graphics live-rendered 'pretty' look. I've spent HOURS in Photoshop
building these lickable button bars *just resizing them* (because
resizing the whole image doesn't always work very well and leaves
artifacts and blurred lines). This is ... undesirable. ;-) I'm not a
graphics guy. I'm a code guy.
The flat buttons at ExitToShell() are nice, but they don't support
end-cap buttons (left and right caps as in iMovie's lower-right mode
tab buttons). Using the same CG rendering code, it should be
relatively trivial to extend that code to allow a button to be
designated as a cap. The same problem exists for the most part with
the membrane buttons. Just doing something as trivial as being able
to resize the width based on the text means three graphics. Right
cap, middle 1-pixel line, left cap. Resizing vertically results in
pixilation.
So ... the ability to do this all with Core Graphics and have it
automagically scale when I arbitrarily resize it in IB is invaluable
for someone with barely enough time to shower before bed time (due to
a full-time job and a shareware business to worry about).
The bottom line: I'm a lazy, lazy man. Give me easy. ;-)
On Jul 1, 2005, at 5:36 PM, Andreas Mayer wrote:
Am 01.07.2005 um 14:44 Uhr schrieb SA Dev:
They're "drawn using Core Graphics so they ... scale"
So do the square buttons in Tiger, I think.
ExitToShell() also offers 'membrane buttons'.
They *are* very pretty, but I think someone should publish the
code that actually draws some of these 'pro app' style buttons
rather than charge the developer community for a button control.
You should be able to make a "membrane button" with this:
http://www.harmless.de/cocoa.html#rollover
I'll post an update soon that does allow you to change the font and
text alignment. And since the code is completely free you may of
course make your own modifications.
Andreas
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40silentalcove.net
This email sent to email@hidden
_______________________________________________
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