Re: [MACTCL] Making a Tk GUI more "Mac-like"
by Kevin Walzer other posts by this author
Jul 26 2007 7:04AM messages near this date
Re: [MACTCL] Making a Tk GUI more "Mac-like"
|
Re: [MACTCL] Making a Tk GUI more "Mac-like"
Mats Bengtsson wrote:
> Kevin Walzer wrote:
> > Mats,
> >
> >
> >> Do you use tablelist for the multi column list?
> >> This gives you two pixel wide separators in the header which looks ugly.
> >
> > Yes, I used tablelist.
> >
> >> Thunderbird hasn't solved this either, but if you use treectrl instead
> >> it gives you nice thin one pixel borders (my patch).
> >> If you use treectrl try to use png images for the gray arrows since the
> >> built in doesn't do the antialiasing.
> >
> > I simply can't get my head around TkTreeCtrl--it is so much more
> > complex than tablelist.
>
> You have to write some tcl script code that wraps up a simple to use API
> for your particular needs. It usually takes *a lot* more effort to use
> than tablelist,
> but the flexibility is far greater. For an example, see my sources
> coccinella/lib/ITree.tcl
> which makes a simple treeview.
>
Another problem with TkTreeCtrl is that it doesn't work well with the
latest version of Tk (8.4.15). Daniel Steffen has made some significant
updates/changes to the way Tk handles system colors and highlights, and
now things look weird in TkTreeCtrl: for instance, column headers are
black rather than the Aqua blue. I suspect this would need patching at
TkTreeCtrl's C level.
> >
>
> 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.
I'll take a closer look at the Safari labels.
--Kevin
-------------------------------------------------------------------------
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
|