From: Will D. <Wil...@jp...> - 2007-10-31 15:11:00
|
Cool! Will On Oct 30, 2007, at 5:02 PM, Joe English wrote: > > 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 > > ---------------------------------------------------------------------- > --- > 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/ > _______________________________________________ > Tktable-tile-dev mailing list > Tkt...@li... > https://lists.sourceforge.net/lists/listinfo/tktable-tile-dev ------------------------------------------------------------------------ Will Duquette, JPL | Wil...@jp... JNEM Dev Lead | http://eis.jpl.nasa.gov/~will (JPL Use Only) | It's amazing what you can do with the right tools. |