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:
pathNameoption ?argarg...?
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:
pathNameanchoroption ?args...?
Manipulates the anchorcell of the tixGrid widget. The anchor cell is the end of the selection
that is fixed while the user is dragging out a selection with the mouse.
pathNamebdtype
TODO place holder
pathNamecgetoption
Returns the current value of the configuration option given by option. Option may have any of the
values accepted by the tixGrid command.
pathNameconfigure ?option? ?valueoptionvalue...?
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(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 the tixGrid
command.
pathNamedeletedimfrom ?to?
Dim may be row or column. 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.
pathNameeditapply
If any cell is being edited, de-highlight the cell and applies the changes.
pathNameeditsetxy
Highlights the cell at (x,y) for editing, if the -editnotify command returns true for this cell.
pathNameentrycgetxyoption
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 the set widget command.
pathNameentryconfigurexy ?option? ?valueoptionvalue...?
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 (see Tk_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 the
set widget command.
pathNameformat
TODO place holder
pathNameindex
TODO place holder
pathNamemovedimfromtooffsetDim may be row or column. Moves the the range of rows (or columns) from position from through to
by the distance indicated by offset. For example, moverow241 moves the rows 2,3,4 to rows
3,4,5.
pathNamesetxy ?-itemtype type? ?optionvalue...?
Creates a new display item at the cell at (x,y). The optional -itemtype parameter 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.
pathNamesizedimindex ?optionvalue...?
Queries or sets the size of the row or column given by dim and index. Dim may be row or column.
Index may be any non-negative integer that gives the position of a given row (or column). Index
can also be the string default; 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:
-pad0pixels
Specifies the paddings to the left or a column or the top of a row.
-pad1pixels
Specifies the paddings to the right or a column or the bottom of a row.
-sizeval
Specifies the width of a column or the height of a row. Val may be: auto -- the width of
the column is set the the widest cell in the column; a valid Tk screen distance unit (see
Tk_GetPixels(n)); or a real number following by the word chars (e.g. 3.4chars) that sets
the width of the column to the given number of characters.
pathNameunsetxy
Clears the cell at (x,y) by removing its display item.
pathNamexview
TODO place holder
pathNameyview
TODO place holder