|
From: Joe E. <jen...@fl...> - 2007-10-31 00:02:23
|
Will Duquette wrote:
>
> When you implement variant notebook styles, please include
> an option of no tabs at all, like the BWidget PagesManager.
> It's a need I run into regularly, and though the PagesManager
> works OK it's annoying to have to use a megawidget when
> ttk::notebook does everything right. Also, with PagesManager
> there's a call you have to make after all of the pages are
> defined so that it can compute the maximum size of any page;
> ttk::notebook just does this right, with no fuss.
>
> I asked for this once before, and you declined, saying it
> was easy enough to do in Tcl, which it is; but it's one of
> those things that has to be done exactly right. I think
> we'd get better GOOBE if ttk::notebook simply provided the
> behavior.
BTW, ttk::notebook has been able to do this since around 0.7.6:
you can now say:
style theme settings default {
style layout Plain.TNotebook.Tab null
}
and a [ttk::notebook] with -style Plain.TNotebook won't
show any tabs.
See also:
<URL: http://www.flightlab.com/~joe/repos/themebag/groupbox.tcl >
for a Snit megawidget that implements an Aqua-style "group box"
(that's like a notebook controlled by a menubutton), which uses
this technique.
--Joe English
|