Re: [MACTCL] Making a Tk GUI more "Mac-like"
by Mats Bengtsson other posts by this author
Jul 26 2007 12:09AM 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:
> 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.
>
> > See http://coccinella.im/v/macosx/
> >
> > Another way to do toolbars can also be seen in
> > http://coccinella.im/v/macosx/
>
> I've looked at Coccinella for some ideas here, although I don't think it
> gets the toobar behavior quite right--the label/buttons change to sunken
> relief when pressed, when in fact a modern Mac toolbar (such as
> HIToolbar) shows no relief at all when pressed; instead the image darkens.
>
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)
Mats
-------------------------------------------------------------------------
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
|