tixCheckList(n)
β¨ tixCheckList(n) β¨
bestie, welcome to the tixCheckList(n) page from Tix Built-In Commands β itβs giving widget-manual realness, and weβre gonna get through every flag together π
β¨ NAME β¨
okay so tixCheckList is literally here to create and manipulate tixCheckList widgets π
π SYNOPSIS π
tixCheckList pathName ?options?
π SUPER-CLASS π
The TixCheckList class is derived from the TixTree class and inherits all the commands, options and subwidgets of its super-class. slay, genetics π
π STANDARD OPTIONS π
TixCheckList supports all the standard options of a frame widget. See the options(n) manual entry for details on the standard options. go read that one too, bestie, itβs the lore.
π WIDGET-SPECIFIC OPTIONS π
-browsecmdbrowseCmdβ Specifies a command to call whenever the user browses on an entry (usually by single-clicking on the entry). The command is called with one argument, the pathname of the entry.-commandcommandβ Specifies a command to call whenever the user activates an entry (usually by double-clicking on the entry). The command is called with one argument, the pathname of the entry.-radioradioβ A Boolean value. If set to true, the user can select at most one item at a time; if set to false, the user can select as many items as possible. one-at-a-time mode vs. collect-the-whole-set mode, iykyk.
π¦ SUBWIDGETS π¦
- Name:
hlistβ Class:TixHList. The hierarchical listbox that displays the CheckList. main character subwidget energy. - Name:
hsbβ Class:Scrollbar. The horizontal scrollbar subwidget. - Name:
vsbβ Class:Scrollbar. The vertical scrollbar subwidget.
πΈ DESCRIPTION πΈ
The tixCheckList command creates a new window (given by the pathName argument) and makes it into a CheckList widget. Additional options, described above, may be specified on the command line or in the option database to configure aspects of the CheckList widget such as its cursor and relief. customization era, no cap.
The CheckList widget displays a list of items to be selected by the user. CheckList acts similarly to the Tk checkbutton or radiobutton widgets, except it is capable of handling many more items than checkbuttons or radiobuttons. so many items, bestie β it ate.
The items are contained in the hlist subwidget. Each item may be in one of the following status: on (indicated by a check bitmap), off (indicated by a cross bitmap), default (indicated by a gray box bitmap) or none, in which case the item will not be accompanied by a bitmap. The items whose status is on, off or default are called the selectable items and can be checked or crossed by the user. All selectable entries must be of the type imagetext.
The items whose status is none cannot be checked or crossed by the user; usually they are included in the hlist subwidget only for explanation purposes or as separators. little informational vibes only.
Initially, all the items have a none status. To make an item selectable, you can call the setstatus command to change its status (see below).
Notice that CheckList is a subclass of the TixTree widget and thus is capable of displaying a hierarchy of selectable entries. When necessary, you can call the setmode method (see TixTree(n)) to define the hierarchical structure of the selectable entries. tree hierarchy slay.
π WIDGET COMMANDS π
The tixCheckList command creates a new Tcl command whose name is the same as the path name of the CheckList'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 CheckList widget's path name. Option and the args determine the exact behavior of the command. The following commands are possible for CheckList widgets:
pathName getselection ?status?β Returns a list of items whose status matchesstatus. Ifstatusis not specified, the list of items in the"on"status will be returned. default behavior stays defaulting to on, periodt.pathName getstatus entryPathβ Returns the current status ofentryPath.pathName setstatus entryPath statusβ Sets the status ofentryPathto bestatus. A bitmap will be displayed next to the entry when its status ison,offordefault.pathName subwidget name ?args?β When no options are given, this command returns the pathname of the subwidget of the specifiedname. When options are given, the widget command of the specified subwidget will be called with these options. subwidgetception, but make it useful.
π₯ EXAMPLE π₯
This example creates several choices for the user to select. copy-paste-ready, bestie.
set c [tixCheckList .c]
$c subwidget hlist add choice1 -itemtype imagetext -text Choice1
$c subwidget hlist add choice2 -itemtype imagetext -text Choice2
$c subwidget hlist add choice3 -itemtype imagetext -text Choice3
$c setstatus choice1 on
$c setstatus choice2 off
$c setstatus choice3 off
pack $c
π± BINDINGS π±
The basic mouse and keyboard bindings of the CheckList widget are the same as the bindings of the TixTree widget.
In addition, the status of the entries in the CheckList are toggled under the following conditions:
- [1] β When the user presses the mouse button over an entry. clicky click.
- [2] β When the user presses the space key over an entry.
- [3] β When the user presses the Return key over an entry. keyboard girlies rise.
π¦ KEYWORDS π¦
Tix(n), tixHList(n), tixTree(n)
okay bye bestie π β source/version: Tix 4.0; section/page: tixCheckList(n); date: not shown in the original footer, so no invented calendar lore, periodt π«Ά
π¦ where this page comes from
- opensuse-leap 16.0: tix 8.4.3-160000.2.2 Β· BSD-3-Clause
- opensuse-leap 16.0: tix 8.4.3-160000.2.2 Β· BSD-3-Clause
- opensuse-leap 16.0: tix 8.4.3-160000.2.2 Β· BSD-3-Clause
- opensuse-leap 16.0: tix 8.4.3-160000.2.2 Β· BSD-3-Clause
- Copyright (c) 1993-1999 Ioi Kim Lam
- Copyright (c) 2000-2001 Tix Project Group
- (c) 1990 The Regents of the University of California
- (c) 1994-1995 Sun Microsystems, Inc
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms