Re: [MACTCL] Making a Tk GUI more "Mac-like"
by Joe English other posts by this author
Jul 26 2007 9:49AM messages near this date
Re: [MACTCL] Making a Tk GUI more "Mac-like"
|
Re: [MACTCL] Making a Tk GUI more "Mac-like"
Kevin Walzer wrote:
> > It should be easy to get the Aqua look, just use a darkened image in a new
> > layout for ttk::button. However, the mouse-over button/labels are Safari
> > look-alikes. I use the toolbar x-platform so I did a compromise.
> > See my sources: coccinella/contrib/ttoolbar.tcl and
> > coccinella/contrib/tileutils.tcl for sources.
> > Note also the mouse-over darkened collapse arrows in the toolbars.
> > (tileutils.tcl : style layout Arrow.TCheckbutton)
>
> I use a darkened image with a label and bind that to a <Button-1> action.
Note that [ttk::button] widgets provide an easier way to
achieve this effect: do something like
$b configure -image [list $normalIcon disabled $greyIcon pressed $darkIcon active $lig
htIcon]
and the built-in bindings and style engine will take care
of the rest automatically. (This is a lot less error-prone
than trying to manage the -image by hand.)
All Tile widget -image options work this way -- "-image"
takes a list, the first element is the default image, the
remaining elements specify state-specific overrides.
--Joe English
jenglish@[...].com
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now > > http://get.splunk.com/
_______________________________________________
Tcl-mac mailing list
tcl-mac@[...].net
https://lists.sourceforge.net/lists/listinfo/tcl-mac
Thread:
Kevin Walzer
Mats Bengtsson
Kevin Walzer
Mats Bengtsson
Kevin Walzer
Joe English
Kevin Walzer
Joe English
Kevin Walzer
Adrian Robert
Philip Aker
Kevin Walzer
Philip Aker
Jim DeVona
|