|
From: Joe E. <jen...@fl...> - 2005-01-31 15:36:49
|
Michael Kirkham wrote:
> [ Kevin Walzer ]
> > [Michael Kirkham]
> > | [...]
> > | you might consider using ttk::label instead of ttk::button for them.
> > | You can make them flat that way so they look more like, say, the XCode
> > | or System Preferences buttons (though I find XCode's buttons kind of
> > | annoying behavior-wise (no interactive feedback), but I like the flat
> > | look).
> >
> > I'm not sure I follow you. How would they be able to execute commands if
> > they were labels instead of buttons? (I tried changing one to a
> > ttk::label and just got an error.)
>
> bind $label <ButtonRelease-1> { whatever your button's -command was }
Doing it that way you won't get most of the standard
button behaviour (e.g., no active/"hot-track" feedback,
user can't cancel a button press by dragging the mouse
off the button, etc.)
[ttk::button .b -style toolbutton ...] will probably be
closer to the desired effect. (I don't know what XCode's
buttons look like, and don't have a Mac handy to check
how well "-style toolbutton" is currently supported, but
that's the recommended mechanism for doing toolbar buttons
on other platforms).
--Joe English
jen...@fl...
|