From: Tim Baker <treectrl@us...> - 2010-10-29 22:46:12
Update of /cvsroot/tktreectrl/tktreectrl/generic
In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv8953/generic
tkTreeColumn.c tkTreeCtrl.c tkTreeCtrl.h tkTreeItem.c
Added support for theme button states.
- New command [item buttonstate] sets the state of an item's button to "active",
"normal" or "pressed".
- The treectrl.tcl library script sets the state of the button under the mouse
to give visual feedback.
- The Gtk+ theme uses the "active" and "pressed" button states.
- Mac OS X uses the "pressed" button state (when -buttontracking=true).
- MS Windows uses the "active" button state if the visual style supports it.
New [theme platform] widget command gets info about native themes.
Added support for Explorer-style buttons on MS Windows.
- The [theme setwindowtheme] command gives access to the SetWindowTheme()
function. By calling [$T theme setwindowtheme "Explorer"] the disclosure
triangles of Vista/Win7 are displayed.
New boolean widget option -buttontracking is used by the treectrl.tcl library
script to treat an item's button as if it were a pushbutton.
When enabled, the item is not expanded/collapsed until the mouse button is
released. This gives the expected behavior on Mac OS X and Gnome/Gtk.
Replace the Gtk+ X error handler with Tk's own.
- Set -showlines=false when Gtk is available.
- Set -buttontracking=true on Mac OS X and when Gtk is available.
- Call [$T theme setwindowtheme "Explorer"] in the Outlook Newsgroup demo
when using visual themes on Windows.
Get latest updates about Open Source Projects, Conferences and News.