|
From: Michael K. <mi...@mu...> - 2005-01-31 20:01:12
|
On Mon, 31 Jan 2005, Joe English wrote:
> The Toolbutton style is defined by individual themes
> not by the widget; see e.g., library/aquaTheme.tcl, macosx/aquaTheme.c.
> On OSX, the Toolbutton style is mapped to an Aqua "Bevel Button".
Most of the toolbar buttons I have seen in Aqua apps aren't bevel buttons.
They are just icons flat on the frame - the look you get with a label
rather than a button, the way other platforms look with the "flat" relief.
Tk's button (and probably Tile's) don't allow you to get a flat relief on
Aqua, though. Flat -> bevel button, whereas with label flat is really
flat.
>> By the way, I have hacked the combobox.tcl file to provide standard Tk
>> scrollbars, since the Tile scrollbars don't work as well on the Mac as
>> the native ones; I also adjusted the font code in that file so the text
>> in the combobox integrates better. I'm distributing the modified file
>> as part of my application.
>
> We do intend to make ttk::scrollbars look native on OSX,
> as soon as we can resolve the impedance mismatch between
> Tile and Carbon -- but that looks like it will take a while,
> so distributing a patched copy of Tile with your application
> is the best way to go for now.
For Kevin: what I've done for MIB Smithy is just...
if {[string equal [tk windowingsystem] "aqua"]}
interp alias {} ::ttk::scrollbar {} ::scrollbar
}
That way the scrollbar gets overrided on Aqua without changes to Tile.
It's only 3 lines...
--
Michael Kirkham
www.muonics.com
|