|
From: Joe E. <jen...@fl...> - 2007-04-28 02:28:01
|
Patrick Heck wrote:
> Tile supports changing of the tab layout by setting a "-tabposition" for the
> desired layout-style. But although the tabs are packed in the right side afte
> r this, the orientation of the decoration around the tab is still pointing in
> the wrong direction.
> I propose to use a new style option "-direction" for Tabs to fix this problem
> .
>
> example:
> --------
> style layout TNotebookv {
> TNotebookv.Tab
> }
> style configure TNotebookv.Tab -direction w
> style configure TNotebookv -tabposition wn
That's one approach, which should work for the Aqua and XP themes.
For others -- notably pixmap themes, where you can't select different
pictures based on an element option -- you need to have separate
elements and TNotebook[NSEW].Tab layouts for each orientation.
You might need different Pane elements for each orientation
as well (e.g., on Aqua the blue bar should appear on the same
side as the tabs). There's a handful of other options you
need to tweak as well, depending on whether and how the
the selected tab should expand, padding, margins, etc.
> As I said this approach is not the most elegant one and also leaves a couple
> of other problems untouched. I'd apprechiate some feedback on how to improve
> and generalize the solution. I belief tile would benefit a lot from a better
> tab support.
It's mostly just a matter of deciding on a standard convention
for style names (e.g., TNotebookv, LeftTabTNotebook, West.TNotebook, ...),
and implementing it in all the themes.
I really do plan on implementing this, honest :-) it's just been hard
to make any progress on Tile lately due to other circumstances.
--Joe English
jen...@fl...
|