tixNBFrame(n)

πŸ“¦ version 8.4.3, in opensuse-leap 16.0

okay bestie, welcome to the tixNBFrame(n) page from Tix Built-In Commands πŸ’– this is the whole backstage-pass vibe for the Tix NoteBook Frame widget, and we are keeping every single detail. no cap.


✨ NAME ✨

tixNBFrame β€” create and manipulate Tix NoteBook Frame widgets. that's the name, that's the mission πŸŽ€

🌸 SYNOPSIS 🌸

tixNBFrame pathName ?options?

✨ STANDARD OPTIONS ✨

standard-options lineup, coming in hot πŸ”₯ every one of these is a standard option, and the page says to see the options manual entry for the full tea:

  • -background β€” standard option, bestie ✨
  • -borderWidth β€” standard option ✨
  • -cursor β€” standard option ✨
  • -disabledForeground β€” standard option ✨
  • -foreground β€” standard option ✨
  • -font β€” standard option ✨
  • -height-highlightColor β€” yes, this exact token is on the page; not splitting it, not fixing it, just preserving it exactly 🫢
  • -highlightThickness β€” standard option ✨
  • -relief β€” standard option ✨
  • -takeFocus β€” standard option ✨
  • -width β€” standard option ✨

See the options manual entry for details on the standard options. (That's the original pointer, not me dodging πŸ’…)

πŸŽ€ WIDGET-SPECIFIC OPTIONS πŸŽ€

these are the glow-up knobs for the NBFrame vibe:

  • [-backpagecolor backPageColor] β€” sets the color for the extra space on the row of tabs that isn't covered by any page tabs.
  • [-focuscolor focusColor] β€” sets the color for the focus highlight.
  • [-inactivebackground inactiveBackground] β€” sets the color for inactive tabs. the active tab always has the same background color as the notebook.
  • [-tabpadx tabPadX] β€” the horizontal padding around the text labels on the page tabs.
  • [-tabpady tabPadY] β€” the vertical padding around the text labels on the page tabs.

πŸ¦‹ DESCRIPTION πŸ¦‹

real talk: the NBFrame widget is used privately inside the TixNoteBook(n) widget to display the page tabs. it is not a main-character widget for app code β€” an application programmer should never create an NBFrame widget directly. like, not even once 😭 the sole purpose of this manual page is to describe the options that can be used to configure the appearance of the TixNoteBook widget.

the NBFrame subwidget inside the TixNoteBook widget is named nbframe β€” that's the subwidget name, iykyk. you can access it with the subwidget command of the TixNoteBook widget or with the -options switch. See below for an example, bestie 🫢

πŸ”₯ EXAMPLE πŸ”₯

exact example, copied with love and zero typos:

              set nb [tixNoteBook .nb -options {
                  nbframe.BackPageColor gray60
              }]
              $nb subwidget nbframe config -font fixed

              $nb add page1 -label "Page1"
              set page [$nb subwidget page1]
              button $page.b1
              pack $page.b1

              pack $nb -expand yes -fill both

πŸ‘‘ KEYWORDS πŸ‘‘


signing off from Tix 4.0 πŸ’… this has been the tixNBFrame(n) page. the source/version is Tix 4.0; the page doesn't print a date, so I'm not inventing one β€” no fake timestamps on my watch 🫢✨

πŸ“¦ where this page comes from