|
From: Kevin W. <sw...@wo...> - 2005-01-31 16:05:18
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Joe English wrote: | | 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 | Joe, It doesn't seem to be supported at all on the Mac: I get an error when I try to define it as such, and I can't find any setting for "toolbutton" in the button.tcl file of my Tile library (I'm running 0.6, built from CVS as part of the TkAqua distro). That's okay, however: after trying the various alternatives that you and Michael suggested, I'm comfortable with the design as it is. 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. Should I submit a patch of some sort? I don't want to muddy the waters of the main distribution with a Mac-specific hack, but I'll put something together (I'll send the file for you to diff, if nothing else) if you want. Kevin -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (Darwin) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFB/lc4JmdQs+6YVcoRAqINAJ9Nwe0zo2nDeq6Fj0KDGKi3jQad5ACcDYa2 unz/i3uWliKMGtCCyDXWfz4= =+IgY -----END PGP SIGNATURE----- |