tixGrid(n)
tixGrid(n) β from the Tix Built-In Commands manual. Hiiii bestie π this is the full tixGrid page, and we are keeping every flag, every TODO place holder, and every tiny detail. No cap. β¨
πΈ NAME πΈ
tixGrid β create and manipulate Tix Grid widgets π
π STANDARD OPTIONS π
Okay so these are the standard options, exactly as they show up here β yes, including the iconic fused-together one π:
-background-borderWidth-cursor-font-foreground-height-highlightColor-highlightThickness-relief-selectBackground-selectForeground-widthβ exactly as written in the source, bestie; the-selectForegroundand-widthsituation is fused like a group-chat voice note π«Ά-xScrollCommand-yScrollCommand
See the options manual entry for details on the standard options. π
β¨ WIDGET-SPECIFIC OPTIONS β¨
[-editdonecmd editDoneCmd]β if this is non-empty, it gives a Tcl command to be executed when the user has edited a grid cell. When this command is called, it gets two extra parameters:x y, where(x,y)is the location of the cell that was just edited. β[-editnotifycmd editNotifyCmd]β if this is non-empty, it gives a Tcl command to be executed when the user tries to edit a grid cell. When this command is called, it gets two extra parameters:x y, where(x,y,)is the location of the cell β yes, the source has that little(x,y,)comma moment, iykyk π. This command should return a boolean value:trueindicates that the cell is editable andfalseotherwise. π₯[-formatcmd formatCmd]β if this is non-empty, it gives a Tcl command to be executed when the grid cells need to be formatted on the screen. Normally, this command calls theformatwidget command (see below). When this command is called, it gets five extra parameters:type x1 y1 x2 y2.typegives the logical type of the region in the grid. It may be one of the following:x-region: the horizontal margin;y-region: the vertical margin;s-region: the area where the horizontal and vertical margins are joined;main: all the cells that do not fall into the above three types.x1 y1 x2 y2gives the extent of the region that needs formatting. π[-leftmargin leftMargin]β in the number of cells, gives the width of the vertical margin. A zero indicates that no vertical should be drawn. π[-selectmode selectMode]β specifies one of several styles for manipulating the selection. The value of the option may be arbitrary, but the default bindings expect it to be eithersingle,browse,multiple, orextended; the default value issingle. π[-selectunit selectUnit]β specifies the selection unit. Valid values arecell,columnorrow. π¦[-topmargin topMargin]β in the number of cells, gives the height of the horizontal margin. A zero indicates that no horizontal should be drawn. β¨
π¦ DESCRIPTION π¦
The tixGrid command creates a new window (given by the pathName argument) and makes it into a tixGrid widget. Additional options, described above, may be specified on the command line or in the option database to configure aspects of the tixGrid widget such as its cursor and relief. π«Ά
A Grid widget displays its contents in a two dimensional grid of cells. Each cell may contain one Tix display item, which may be in text, graphics or other formats. See the tixDisplayStyle manual page for more information about Tix display items. Individual cells, or groups of cells, can be formatted with a wide range of attributes, such as its color, relief and border. π
π WIDGET COMMAND π
The tixGrid command creates a new Tcl command whose name is the same as the path name of the tixGrid 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 tixGrid widgetβs path name. Option and the args determine the exact behavior of the command. The following commands are possible for tixGrid widgets:
pathName anchor option ?args ...?β manipulates the anchor cell of thetixGridwidget. The anchor cell is the end of the selection that is fixed while the user is dragging out a selection with the mouse. π±οΈpathName bdtypeβ the page literally saysTODO place holderπ iconic unfinished behavior, not me.pathName cget optionβ returns the current value of the configuration option given by option. Option may have any of the values accepted by thetixGridcommand. β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 (seeTk_ConfigureInfo(n)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 thetixGridcommand. πpathName delete dim from ?to?β dim may beroworcolumn. If to is not given, deletes a single row (or column) at the position from. If to is given, deletes the range of rows (or columns) from position from through to. ποΈpathName edit applyβ if any cell is being edited, de-highlight the cell and applies the changes. β¨pathName edit set x yβ highlights the cell at(x,y)for editing, if the-editnotifycommand returns true for this cell. πpathName entrycget x y optionβ returns the current value of the configuration option given by option of the cell at(x,y). Option may have any of the values accepted by thesetwidget command. πpathName entryconfigure x y ?option? ?value option value ...?β query or modify the configuration options of the cell at(x,y). If no option is specified, returns a list describing all of the available options for the cell (seeTk_ConfigureInfo(n)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 thesetwidget command. πΈpathName formatβTODO place holderπpathName indexβTODO place holderπpathName move dim from to offsetβ dim may beroworcolumn. Moves the range of rows (or columns) from position from through to by the distance indicated by offset. For example,move row 2 4 1moves the rows2,3,4to rows3,4,5. π₯pathName set x y ?-itemtype type? ?option value...?β creates a new display item at the cell at(x,y). The optional-itemtypeparameter gives the type of the display item. An additional list of option-value pairs specify options of the display item. If a display item already exists at this cell, the old item will be deleted automatically. π¦pathName size dim index ?option value ...?β queries or sets the size of the row or column given by dim and index. Dim may beroworcolumn. Index may be any non-negative integer that gives the position of a given row (or column). Index can also be the stringdefault; in this case, this command queries or sets the default size of all rows (or columns). β¨
When no option-value pair is given, this command returns a list containing the current size setting of the given row (or column). When option-value pairs are given, the corresponding options of the size setting of the given row are changed. Option may be one of the following:
-pad0 pixelsβ specifies the padding to the left of a column or the top of a row. π-pad1 pixelsβ specifies the padding to the right of a column or the bottom of a row. πΈ-size valβ specifies the width of a column or the height of a row. Val may be:autoβ the width of the column is set to the widest cell in the column; a valid Tk screen distance unit (seeTk_GetPixels(n)); or a real number followed by the wordchars(e.g.3.4chars) that sets the width of the column to the given number of characters. π
pathName unset x yβ clears the cell at(x,y)by removing its display item. π§pathName xviewβTODO place holderπpathName yviewβTODO place holderπ
π₯ KEYWORDS π₯
grid, spread sheet, table β periodt πβ¨
Okay bye bestie β this page is signed by Tix version 4.1 and the manual page tixGrid(n); the footer didnβt give us a date, so thatβs the whole tea π«Άπ
π¦ 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