tixScrolledText(n)

๐Ÿ“ฆ version 8.4.3, in opensuse-leap 16.0

๐Ÿ’… tixScrolledText โ€” the Tix Built-In Commands fam ๐Ÿ’…

okay so bestie, this one lives in the Tix Built-In Commands section of the manual (that's the manual name, iykyk), and it's literally all about creating and manipulating Tix ScrolledText widgets. it's giving scrollable text icon energy. let's go ๐Ÿซถ


โœจ NAME โœจ

tixScrolledText โ€” create and manipulate Tix ScrolledText widgets. that's it, that's the whole vibe. ๐ŸŽ€


โœจ SYNOPSIS โœจ

tixScrolledText pathName ?options?

so you give it a pathName and optionally some options and boom, widget. slay.


โœจ STANDARD OPTIONS โœจ

these are the standard ones, no cap:

  • -anchor
  • -background
  • -cursor
  • -relief
  • -borderWidth

the manual is like "see the options manual entry for details on the standard options" โ€” so go read that one too, bestie, it's right there. ๐Ÿ“–


โœจ WIDGET-SPECIFIC OPTIONS โœจ

these are the ones that are hers, the main character options ๐Ÿ‘‘

  • -height height โ€” specifies the desired height for the window, in pixels. that's pixels, not vibes.
  • -scrollbar scrollbar โ€” specifies the display policy of the scrollbars. the following values are recognized:
    • auto ?+x? ?-x? ?+y? ?-y? โ€” when -scrollbar is set to "auto", the scrollbars are shown only when needed. additional modifiers can be used to force a scrollbar to be shown or hidden. for example, "auto -y" means the horizontal scrollbar should be shown when needed but the vertical scrollbar should always be hidden; "auto +x" means the vertical scrollbar should be shown when needed but the horizontal scrollbar should always be shown, and so on. yes, that's exactly what it says โ€” read it twice, it's a whole thing ๐Ÿ˜ญ
    • both โ€” both scrollbars are shown. equality, periodt.
    • none โ€” the scrollbars are never shown. minimalism queen ๐Ÿฆ‹
    • x โ€” only the horizontal scrollbar is shown;
    • y โ€” only the vertical scrollbar is shown.
  • -width width โ€” specifies the desired width for the window, in pixels.

โœจ SUBWIDGETS โœจ

these are the little subwidgets living inside, each one has a name and a class:

  • Name: hsb โ€” Class: Scrollbar
    • the horizontal scrollbar subwidget. ๐Ÿ’–
  • Name: text โ€” Class: Text
    • the Text subwidget inside the ScrolledText widget. she's the moment.
  • Name: vsb โ€” Class: Scrollbar
    • the vertical scrollbar subwidget. ๐Ÿ’–

โœจ DESCRIPTION โœจ

the tixScrolledText command creates a new window (given by the pathName argument) and makes it into a ScrolledText widget. additional options, described above, may be specified on the command line or in the option database to configure aspects of the ScrolledText widget such as its cursor and relief. so like โ€” you can set it at creation, or from the option database, your call, bestie ๐ŸŒธ


โœจ WIDGET COMMANDS โœจ

the tixScrolledText command creates a new Tcl command whose name is the same as the path name of the ScrolledText widget's window. this command may be used to invoke various operations on the widget. it has the following general form:

pathName option ?arg arg ...?

pathName is the name of the command, which is the same as the ScrolledText widget's path name. option and the args determine the exact behavior of the command. the following commands are possible for ScrolledText widgets:

  • pathName cget option โ€” returns the current value of the configuration option given by option. option may have any of the values accepted by the tixScrolledText command.
  • pathName configure ?option? ?value option value ...? โ€” query or modify the configuration options of the widget. if no option is specified, returns a list describing all of the available options for pathName (see Tk_ConfigureInfo for information on the format of this list). if option is specified with no value, then the command returns a list describing the one named option (this list will be identical to the corresponding sublist of the value returned if no option is specified). if one or more option-value pairs are specified, then the command modifies the given widget option(s) to have the given value(s); in this case the command returns an empty string. option may have any of the values accepted by the tixScrolledText command. ๐Ÿ˜ฎโ€๐Ÿ’จ okay that was a lot but we got there.
  • pathName subwidget name ?args? โ€” when no additional arguments are given, returns the pathname of the subwidget of the specified name.

when no additional arguments are given, the widget command of the specified subwidget will be called with these parameters.

๐Ÿซถ bestie i'm just the messenger โ€” that's literally what the page says, both sentences, word for word. i did not touch it. ๐Ÿ™ˆ

โœจ KEYWORDS โœจ

Tix(n) โ€” that's the keyword, go look it up, iykyk ๐Ÿ”ฅ


okay that's the whole page, no notes. source/version: this is Tix 4.0 energy, dated tixScrolledText(n) โ€” and honestly? iconic. periodt. ๐Ÿ’œโœจ

๐Ÿ“ฆ where this page comes from