home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2000 May
/
Chip_2000-05_cd1.bin
/
zkuste
/
Perl
/
ActivePerl-5.6.0.613.msi
/
䆊䌷䈹䈙䏵-䞅䞆䞀㡆䞃䄦䠥
/
_27482f9f19ebb47ef664dca60d1dbaf0
< prev
next >
Wrap
Text File
|
2000-03-23
|
26KB
|
501 lines
<HTML>
<HEAD>
<TITLE>Tk::TixGrid - Create and manipulate Tix Grid widgets</TITLE>
<LINK REL="stylesheet" HREF="../../../Active.css" TYPE="text/css">
<LINK REV="made" HREF="mailto:">
</HEAD>
<BODY>
<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH=100%>
<TR><TD CLASS=block VALIGN=MIDDLE WIDTH=100% BGCOLOR="#cccccc">
<STRONG><P CLASS=block> Tk::TixGrid - Create and manipulate Tix Grid widgets</P></STRONG>
</TD></TR>
</TABLE>
<A NAME="__index__"></A>
<!-- INDEX BEGIN -->
<UL>
<LI><A HREF="#name">NAME</A></LI><LI><A HREF="#supportedplatforms">SUPPORTED PLATFORMS</A></LI>
<LI><A HREF="#synopsis">SYNOPSIS</A></LI>
<LI><A HREF="#standard options">STANDARD OPTIONS</A></LI>
<LI><A HREF="#widgetspecific options">WIDGET-SPECIFIC OPTIONS</A></LI>
<LI><A HREF="#description">DESCRIPTION</A></LI>
<LI><A HREF="#widget methods">WIDGET METHODS</A></LI>
<LI><A HREF="#bindings">BINDINGS</A></LI>
<LI><A HREF="#see also">SEE ALSO</A></LI>
<LI><A HREF="#bugs">BUGS</A></LI>
<LI><A HREF="#keywords">KEYWORDS</A></LI>
</UL>
<!-- INDEX END -->
<HR>
<P>
<H1><A NAME="name">NAME</A></H1>
<P>Tk::TixGrid - Create and manipulate Tix Grid widgets</P>
<P>
<HR>
<H1><A NAME="supportedplatforms">SUPPORTED PLATFORMS</A></H1>
<UL>
<LI>Linux</LI>
<LI>Solaris</LI>
<LI>Windows</LI>
</UL>
<HR>
<H1><A NAME="synopsis">SYNOPSIS</A></H1>
<P> <EM>$tixgrid</EM> = <EM>$parent</EM>-><STRONG>TixGrid</STRONG>?(<EM>options</EM>)?;</P>
<PRE>
The port of C code and bindings is done but needs
debugging. THERE ARE KNOWN BUGS. Work in progress ...</PRE>
<P>
<HR>
<H1><A NAME="standard options">STANDARD OPTIONS</A></H1>
<P><TABLE CELLSPACING=0 CELLPADDING=0><TR><TD><STRONG>-background</STRONG>
<TR><TD><TD><STRONG>-borderwidth</STRONG>
<TR><TD><TD><STRONG>-cursor</STRONG>
<TR><TD><TD><STRONG>-font</STRONG>
<TR><TD><TD><STRONG>-foreground</STRONG>
<TR><TD><TD><STRONG>-height</STRONG>
<TR><TD><TD><STRONG>-highlightbackground</STRONG>
<TR><TD><TD><STRONG>-highlightcolor</STRONG>
<TR><TD><TD><STRONG>-highlightthickness</STRONG>
<TR><TD><TD><STRONG>-padx</STRONG>
<TR><TD><TD><STRONG>-pady</STRONG>
<TR><TD><TD><STRONG>-relief</STRONG>
<TR><TD><TD><STRONG>-selectbackground</STRONG>
<TR><TD><TD><STRONG>-selectborderwidth</STRONG>
<TR><TD><TD><STRONG>-selectforeground</STRONG>
<TR><TD><TD><STRONG>-state</STRONG>
<TR><TD><TD><STRONG>-takefocus</STRONG>
<TR><TD><TD><STRONG>-width</STRONG>
<TR><TD><TD><STRONG>-xscrollcommand</STRONG>
<TR><TD><TD><STRONG>-yscrollcommand</STRONG></TABLE></P>
<P>See <A HREF="../../../site/lib/Tk/options.html">the Tk::options manpage</A> for details of the standard options.</P>
<P>
<HR>
<H1><A NAME="widgetspecific options">WIDGET-SPECIFIC OPTIONS</A></H1>
<DL>
<DT><STRONG><A NAME="item_Name%3A_browseCmd">Name: <STRONG>browseCmd</STRONG></A></STRONG><BR>
<DD>
<DT><STRONG><A NAME="item_Class%3A_BrowseCmd">Class: <STRONG>BrowseCmd</STRONG></A></STRONG><BR>
<DD>
<DT><STRONG><A NAME="item_Switch%3A_%2Dbrowsecmd">Switch: <STRONG>-browsecmd</STRONG></A></STRONG><BR>
<DD>
?docu here? Not in configure output but used in bindings ??!!
<P>If defined, gives a perl/Tk <A HREF="../../../site/lib/Tk/callbacks.html">callback</A>
to be executed when the
user browses a grid cell (This is normally the case when
the user clicks on an entry). When this callback is called, it is
passed with two additional parameters: <EM>x</EM> <EM>y</EM>, where (<EM>x</EM>,<EM>y</EM>)
is the location of the cell that has just been clicked.</P>
<P></P>
<DT><STRONG><A NAME="item_Name%3A_Command">Name: <STRONG>Command</STRONG></A></STRONG><BR>
<DD>
<DT><STRONG><A NAME="item_Class%3A_Command">Class: <STRONG>Command</STRONG></A></STRONG><BR>
<DD>
<DT><STRONG><A NAME="item_Switch%3A_%2Dcommand">Switch: <STRONG>-command</STRONG></A></STRONG><BR>
<DD>
?docu here? Not in configure output but used in bindings ??!!
<P></P>
<DT><STRONG><A NAME="item_Name%3A_editDoneCmd">Name: <STRONG>editDoneCmd</STRONG></A></STRONG><BR>
<DD>
<DT><STRONG><A NAME="item_Class%3A_EditDoneCmd">Class: <STRONG>EditDoneCmd</STRONG></A></STRONG><BR>
<DD>
<DT><STRONG><A NAME="item_Switch%3A_%2Deditdonecmd">Switch: <STRONG>-editdonecmd</STRONG></A></STRONG><BR>
<DD>
If defined, gives a perl/Tk <A HREF="../../../site/lib/Tk/callbacks.html">callback</A>
to be executed when the
user has edited grid cell. When this callback is called, it is
passed with two additional parameters: <EM>x</EM> <EM>y</EM>, where (<EM>x</EM>,<EM>y</EM>)
is the location of the cell that has just been edited.
<P></P>
<DT><STRONG><A NAME="item_Name%3A_editNotifyCmd">Name: <STRONG>editNotifyCmd</STRONG></A></STRONG><BR>
<DD>
<DT><STRONG><A NAME="item_Class%3A_EditNotifyCmd">Class: <STRONG>EditNotifyCmd</STRONG></A></STRONG><BR>
<DD>
<DT><STRONG><A NAME="item_Switch%3A_%2Deditnotifycmd">Switch: <STRONG>-editnotifycmd</STRONG></A></STRONG><BR>
<DD>
If defined gives a perl/Tk <A HREF="../../../site/lib/Tk/callbacks.html">callback</A>
to be executed when the user tries to edit a grid cell.
When this callback is called, it is passed with two additional
parameters: <EM>x</EM> <EM>y</EM>, where (<EM>x</EM>,<EM>y</EM>,) is the location
of the cell. This callback should return a boolean value: <STRONG>true</STRONG>
indicates that the cell is editable and <STRONG>false</STRONG> otherwise.
<P></P>
<DT><STRONG><A NAME="item_Name%3A_FloatingCols">Name: <STRONG>FloatingCols</STRONG></A></STRONG><BR>
<DD>
<DT><STRONG><A NAME="item_Class%3A_floatingCols">Class: <STRONG>floatingCols</STRONG></A></STRONG><BR>
<DD>
<DT><STRONG><A NAME="item_Switch%3A_%2Dfloatingcols">Switch: <STRONG>-floatingcols</STRONG></A></STRONG><BR>
<DD>
Defines the number of columns that fixed when the widget
is horizontally scrolled. These <CODE>column(s)</CODE>
can be used as <CODE>label(s)</CODE> for the column(s). The floating <CODE>column(s)</CODE>
can be configured in the <STRONG>-formatcmd</STRONG> callback with the
<STRONG>formatBorder</STRONG> method. The default value is 0.
<P></P>
<DT><STRONG><A NAME="item_Name%3A_FloatingRows">Name: <STRONG>FloatingRows</STRONG></A></STRONG><BR>
<DD>
<DT><STRONG><A NAME="item_Class%3A_floatingRows">Class: <STRONG>floatingRows</STRONG></A></STRONG><BR>
<DD>
<DT><STRONG><A NAME="item_Switch%3A_%2Dfloatingrows">Switch: <STRONG>-floatingrows</STRONG></A></STRONG><BR>
<DD>
Defines the number of rows that are fixed when the widget
is vertically scrolled. These <CODE>row(s)</CODE>
can be used as <CODE>label(s)</CODE> for the row(s). The floating <CODE>row(s)</CODE>
can be configured in the <STRONG>-formatcmd</STRONG> callback with the
<STRONG>formatBorder</STRONG> method. The default value is 0.
<P></P>
<DT><STRONG><A NAME="item_Name%3A_formatCmd">Name: <STRONG>formatCmd</STRONG></A></STRONG><BR>
<DD>
<DT><STRONG><A NAME="item_Class%3A_FormatCmd">Class: <STRONG>FormatCmd</STRONG></A></STRONG><BR>
<DD>
<DT><STRONG><A NAME="item_Switch%3A_%2Dformatcmd">Switch: <STRONG>-formatcmd</STRONG></A></STRONG><BR>
<DD>
If defined, gives a perl/Tk <A HREF="../../../site/lib/Tk/callbacks.html">callback</A> to be
executed when the grid cells need to be formatted on the screen.
Normally, this callback calls the <STRONG>format</STRONG> method (see below).
When this callback is called, it is passed with five additional
parameters: <EM>type</EM> <EM>x1</EM> <EM>y1</EM> <EM>x2</EM> <EM>y2</EM>. <EM>type</EM> gives the
logical type of the region in the grid. It may be one of the
following.
<DL>
<DT><STRONG><A NAME="item_x%2Dregion"><STRONG>x-region</STRONG></A></STRONG><BR>
<DD>
the horizontal margin
<P></P>
<DT><STRONG><A NAME="item_y%2Dregion"><STRONG>y-region</STRONG></A></STRONG><BR>
<DD>
the vertical margin
<P></P>
<DT><STRONG><A NAME="item_s%2Dregion"><STRONG>s-region</STRONG></A></STRONG><BR>
<DD>
the area where the horizontal and vertical margins are joined
<P></P>
<DT><STRONG><A NAME="item_main"><STRONG>main</STRONG></A></STRONG><BR>
<DD>
all the cells that do not fall into the above three types
<P></P></DL>
<P><EM>x1</EM> <EM>y1</EM> <EM>x2</EM> <EM>y2</EM> gives the extent of the region that needs
formatting.</P>
<DT><STRONG><A NAME="item_Name%3A_leftMargin">Name: <STRONG>leftMargin</STRONG></A></STRONG><BR>
<DD>
<DT><STRONG><A NAME="item_Class%3A_LeftMargin">Class: <STRONG>LeftMargin</STRONG></A></STRONG><BR>
<DD>
<DT><STRONG><A NAME="item_Switch%3A_%2Dleftmargin">Switch: <STRONG>-leftmargin</STRONG></A></STRONG><BR>
<DD>
In the number of cells, gives the width of vertical margin.
A zero indicates that no vertical should be drawn.
<P></P>
<DT><STRONG><A NAME="item_Name%3A_itemType">Name: <STRONG>itemType</STRONG></A></STRONG><BR>
<DD>
<DT><STRONG><A NAME="item_Class%3A_ItemType">Class: <STRONG>ItemType</STRONG></A></STRONG><BR>
<DD>
<DT><STRONG><A NAME="item_Switch%3A_%2Ditemtype">Switch: <STRONG>-itemtype</STRONG></A></STRONG><BR>
<DD>
?docu here?
<P></P>
<DT><STRONG><A NAME="item_Name%3A_selectMode">Name: <STRONG>selectMode</STRONG></A></STRONG><BR>
<DD>
<DT><STRONG><A NAME="item_Class%3A_SelectMode">Class: <STRONG>SelectMode</STRONG></A></STRONG><BR>
<DD>
<DT><STRONG><A NAME="item_Switch%3A_%2Dselectmode">Switch: <STRONG>-selectmode</STRONG></A></STRONG><BR>
<DD>
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 either <STRONG>single</STRONG>, <STRONG>browse</STRONG>, <STRONG>multiple</STRONG>, or <STRONG>extended</STRONG>;
the default value is <STRONG>single</STRONG>.
<P></P>
<DT><STRONG><A NAME="item_Name%3A_selectUnit">Name: <STRONG>selectUnit</STRONG></A></STRONG><BR>
<DD>
<DT><STRONG><A NAME="item_Class%3A_SelectUnit">Class: <STRONG>SelectUnit</STRONG></A></STRONG><BR>
<DD>
<DT><STRONG><A NAME="item_Switch%3A_%2Dselectunit">Switch: <STRONG>-selectunit</STRONG></A></STRONG><BR>
<DD>
Specifies the selection unit. Valid values are <STRONG>cell</STRONG>, <STRONG>column</STRONG> or <STRONG>row</STRONG>.
<P></P>
<DT><STRONG><A NAME="item_Name%3A_sizeCmd">Name: <STRONG>sizeCmd</STRONG></A></STRONG><BR>
<DD>
<DT><STRONG><A NAME="item_Class%3A_SizeCmd">Class: <STRONG>SizeCmd</STRONG></A></STRONG><BR>
<DD>
<DT><STRONG><A NAME="item_Switch%3A_%2Dsizecmd">Switch: <STRONG>-sizecmd</STRONG></A></STRONG><BR>
<DD>
?docu here?
<P></P>
<DT><STRONG><A NAME="item_Name%3A_topMargin">Name: <STRONG>topMargin</STRONG></A></STRONG><BR>
<DD>
<DT><STRONG><A NAME="item_Class%3A_TopMargin">Class: <STRONG>TopMargin</STRONG></A></STRONG><BR>
<DD>
<DT><STRONG><A NAME="item_Switch%3A_%2Dtopmargin">Switch: <STRONG>-topmargin</STRONG></A></STRONG><BR>
<DD>
In the number of cells, gives the height of horizontal margin.
A zero indicates that no horizontal should be drawn.
<P></P></DL>
<P>
<HR>
<H1><A NAME="description">DESCRIPTION</A></H1>
<P>The <STRONG>TixGrid</STRONG> method creates a TixGrid new window and returns a
blessed reference of this TixGrid widget.
Additional options,
described above, may be specified on the command line or in the
option database to configure aspects of the <STRONG>TixGrid</STRONG> widget
such as its cursor and relief.</P>
<P>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 <A HREF="../../../site/lib/Tk/DItem.html">the Tk::DItem manpage</A> 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.</P>
<P>
<HR>
<H1><A NAME="widget methods">WIDGET METHODS</A></H1>
<P>The <STRONG>TixGrid</STRONG> method creates a TixGrid widget and returns a blessed
reference of this TixGrid widget. This reference may be used to
invoke various operations on the widget. It has the following general
form:</P>
<P> <EM>$tixgrid</EM>-><STRONG>method</STRONG>?(<EM>arg, arg, ...</EM>)?</P>
<P><EM>arg</EM>s determine the exact behavior of the method. The following
methods are possible for <STRONG>TixGrid</STRONG> widgets:</P>
<DL>
<DT><STRONG><A NAME="item_anchor"><EM>$tixgrid</EM>-><STRONG>anchor</STRONG>(<EM>action</EM>, <EM>x</EM>, <EM>y</EM>)</A></STRONG><BR>
<DD>
<DT><STRONG><A NAME="item_anchorAction"><EM>$tixgrid</EM>-><STRONG>anchor</STRONG><EM>Action</EM>(<EM>x</EM>, <EM>y</EM>)</A></STRONG><BR>
<DD>
Manipulates the <STRONG>anchor cell</STRONG> of the <STRONG>TixGrid</STRONG> widget.
The anchor cell is the end of the selection that is fixed
while the user is dragging out a selection with the mouse.
<EM>Action</EM> can be <STRONG>clear</STRONG>, <STRONG>get</STRONG> or <STRONG>set</STRONG>. If <EM>action</EM>
is <STRONG>clear</STRONG>, <EM>x</EM> and <EM>y</EM> args are not accepted.
<P></P>
<DT><STRONG><A NAME="item_bdtype"><EM>$tixgrid</EM>-><STRONG>bdtype</STRONG>(<EM>x</EM>, <EM>y</EM> ?,<EM>xbdWidth</EM>, <EM>ybdWidth</EM>?)</A></STRONG><BR>
<DD>
????
<P></P>
<DT><STRONG><A NAME="item_cget"><EM>$tixgrid</EM>-><STRONG>cget</STRONG>('<EM>-option</EM>')</A></STRONG><BR>
<DD>
Returns the current value of the configuration option given
by <EM>-option</EM>. <EM>-option</EM> may have any of the values accepted
by the <STRONG>TixGrid</STRONG> constructor method.
<P></P>
<DT><STRONG><A NAME="item_configure"><EM>$tixgrid</EM>-><STRONG>configure</STRONG>(?<EM>-option</EM>??=><EM>value</EM>, <EM>-option</EM>=><EM>value</EM>, <EM>...</EM>?)</A></STRONG><BR>
<DD>
Query or modify the configuration options of the widget.
If no <EM>-option</EM> is specified, returns a list describing all
of the available options for <EM>$tixgrid</EM> (see <STRONG>Tk_ConfigureInfo</STRONG>
for information on the format of this list.) If <EM>-option</EM> is
specified with no <EM>value</EM>, then the method returns a list describing
the one named option (this list will be identical to the corresponding
sublist of the value returned if no <EM>-option</EM> is specified).
If one or more <EM>option-value</EM> pairs are specified, then the
method modifies the given widget <CODE>option(s)</CODE> to have the given value(s);
in this case the method returns an empty string. <EM>-option</EM> may have
any of the values accepted by the <STRONG>TixGrid</STRONG> constructor method.
<P></P>
<DT><STRONG><A NAME="item_delete"><EM>$tixgrid</EM>-><STRONG>delete</STRONG>(<EM>dim</EM>, <EM>from</EM>?, <EM>to</EM>?)</A></STRONG><BR>
<DD>
<DT><STRONG><A NAME="item_deleteColumn"><EM>$tixgrid</EM>-><STRONG>deleteColumn</STRONG>(<EM>from</EM>?, <EM>to</EM>?)</A></STRONG><BR>
<DD>
<DT><STRONG><A NAME="item_deleteRow"><EM>$tixgrid</EM>-><STRONG>deleteRow</STRONG>(<EM>from</EM>?, <EM>to</EM>?)</A></STRONG><BR>
<DD>
<EM>Dim</EM> may be <STRONG>row</STRONG> or <STRONG>column</STRONG>. If <EM>to</EM> is not given,
deletes a single row (or column) at the position <EM>from</EM>.
If <EM>to</EM> is given, deletes the range of rows (or columns)
from position <EM>from</EM> through <EM>to</EM>.
<P></P>
<DT><STRONG><A NAME="item_dragsite"><EM>$tixgrid</EM>-><STRONG>dragsite</STRONG>(<EM>option</EM>, <EM>x</EM>, <EM>y</EM>)</A></STRONG><BR>
<DD>
?docu here? not implemented :-(
<P></P>
<DT><STRONG><A NAME="item_dropsite"><EM>$tixgrid</EM>-><STRONG>dropsite</STRONG>(<EM>option</EM>, <EM>x</EM>, <EM>y</EM>)</A></STRONG><BR>
<DD>
?docu here? not implemented :-(
<P></P>
<DT><STRONG><A NAME="item_editApply"><EM>$tixgrid</EM>-><STRONG>editApply</STRONG></A></STRONG><BR>
<DD>
If any cell is being edited, de-highlight the cell and
applies the changes.
<P></P>
<DT><STRONG><A NAME="item_editSet"><EM>$tixgrid</EM>-><STRONG>editSet</STRONG>(<EM>x</EM>, <EM>y</EM>)</A></STRONG><BR>
<DD>
Highlights the cell at (<EM>x</EM>,<EM>y</EM>) for editing,
if the <STRONG>-editnotify</STRONG> callback returns true for this cell.
<P></P>
<DT><STRONG><A NAME="item_entrycget"><EM>$tixgrid</EM>-><STRONG>entrycget</STRONG>(<EM>x</EM>, <EM>y</EM>, '<EM>-option</EM>')</A></STRONG><BR>
<DD>
Returns the current value of the configuration option given by
<EM>-option</EM> of the cell at (<EM>x</EM>,<EM>y</EM>). <EM>-option</EM> may have any
of the values accepted by the <STRONG>set</STRONG> method.
<P></P>
<DT><STRONG><A NAME="item_entryconfigure"><EM>$tixgrid</EM>-><STRONG>entryconfigure</STRONG>(<EM>x</EM>, <EM>y</EM>?, <EM>-option</EM>??=><EM>value</EM>, <EM>-option</EM>=><EM>value</EM>, <EM>...</EM>?)</A></STRONG><BR>
<DD>
Query or modify the configuration options of the cell at (<EM>x</EM>,<EM>y</EM>).
If no <EM>-option</EM> is specified, returns a list describing all of the
available options for the cell (see <STRONG>Tk_ConfigureInfo</STRONG> for information
on the format of this list.) If <EM>-option</EM> is specified with no
<EM>value</EM>, then the method returns a list describing the one named
option (this list will be identical to the corresponding sublist
of the value returned if no <EM>-option</EM> is specified.) If one or
more <EM>option-value</EM> pairs are specified, then the method modifies
the given widget <CODE>option(s)</CODE> to have the given value(s); in this case
the method returns an empty string. <EM>Option</EM> may have any of the
values accepted by the <STRONG>set</STRONG> method.
<P></P>
<DT><STRONG><A NAME="item_format"><EM>$tixgrid</EM>-><STRONG>format</STRONG>(<EM>option</EM>, ?<EM>args</EM>, ...?)</A></STRONG><BR>
<DD>
<DT><STRONG><A NAME="item_formatBorder"><EM>$tixgrid</EM>-><STRONG>formatBorder</STRONG>(<EM>x1,y1</EM>, <EM>x2,y2</EM>, <EM>options</EM>);</A></STRONG><BR>
<DD>
<DT><STRONG><A NAME="item_formatGrid"><EM>$tixgrid</EM>-><STRONG>formatGrid</STRONG>(<EM>x1,y1</EM>, <EM>x2,y2</EM>, <EM>options</EM>);</A></STRONG><BR>
<DD>
the <STRONG>format</STRONG> method can only be called by the <STRONG>-formatcmd</STRONG> callback
of the tixGrid widget.
<P>?docu complete?</P>
<P></P>
<DT><STRONG><A NAME="item_geometryinfo"><EM>$tixgrid</EM>-><STRONG>geometryinfo</STRONG>(?<EM>width</EM>, ?<EM>height</EM>, ...?)</A></STRONG><BR>
<DD>
?docu here? Return a list of 4 floats! Currently ``{first1 last1} {first2,last2}'' :-(
<P></P>
<DT><STRONG><A NAME="item_index"><EM>$tixgrid</EM>-><STRONG>index</STRONG>(<EM>$coordx</EM>, <EM>$coordy</EM>)</A></STRONG><BR>
<DD>
?docu here?
<P>retuns <EM>(nx, ny)</EM> of entry at position (<EM>$coordx</EM>, <EM>$coordy</EM>).
(??widget or screen offset??)</P>
<P></P>
<DT><STRONG><A NAME="item_info"><EM>$tixgrid</EM>-><STRONG>info</STRONG>(<EM>option</EM>, ?<EM>args</EM>, ...?)</A></STRONG><BR>
<DD>
?docu here?
<P></P>
<DT><STRONG><A NAME="item_move"><EM>$tixgrid</EM>-><STRONG>move</STRONG>(<EM>dim</EM>, <EM>from</EM>, <EM>to</EM>, <EM>offset</EM>)</A></STRONG><BR>
<DD>
<DT><STRONG><A NAME="item_moveColumn"><EM>$tixgrid</EM>-><STRONG>moveColumn</STRONG>(<EM>from</EM>, <EM>to</EM>, <EM>offset</EM>)</A></STRONG><BR>
<DD>
<DT><STRONG><A NAME="item_moveRow"><EM>$tixgrid</EM>-><STRONG>moveRow</STRONG>(<EM>from</EM>, <EM>to</EM>, <EM>offset</EM>)</A></STRONG><BR>
<DD>
<EM>Dim</EM> may be <STRONG>row</STRONG> or <STRONG>column</STRONG>. Moves the range of rows
(or columns) from position <EM>from</EM> through <EM>to</EM> by the distance
indicated by <EM>offset</EM>. For example,
<EM>$tixgrid</EM>-><STRONG>moveRow</STRONG>(<STRONG>2</STRONG>, <STRONG>4</STRONG>, <STRONG>1</STRONG>) moves the rows 2,3,4
to rows 3,4,5.
<P></P>
<DT><STRONG><A NAME="item_nearest"><EM>$tixgrid</EM>-><STRONG>nearest</STRONG>(<EM>x</EM>, <EM>y</EM>)</A></STRONG><BR>
<DD>
?docu here? screen pos (pixels) to entry (nx,ny) translation.
<P></P>
<DT><STRONG><A NAME="item_selection"><EM>$tixgrid</EM>-><STRONG>selection</STRONG>(<EM>option</EM>, <EM>x1</EM>, <EM>y1</EM> ?,<EM>x2</EM>, <EM>y2</EM>?)</A></STRONG><BR>
<DD>
<DT><STRONG><A NAME="item_selectionOption"><EM>$tixgrid</EM>-><STRONG>selection</STRONG><EM>Option</EM>(<EM>x1</EM>, <EM>y1</EM> ?,<EM>x2</EM>, <EM>y2</EM>?)</A></STRONG><BR>
<DD>
Option one of: <STRONG>adjust</STRONG>, <STRONG>clear</STRONG>, <STRONG>includes</STRONG>, <STRONG>set</STRONG>, and <STRONG>toggle</STRONG>.
<P>x1 (y1) has not to be greater than x2 (y2), but only x2 and y2 can be 'max'.</P>
<P>BUG: <EM>selection includes</EM>: has no visible effect (as in Tix). Eh???</P>
<P>BUG: <EM>selection clear</EM>: only works for 0, 0, max, max (as in Tix). Eh???</P>
<P>When <EM>x2, y2</EM> are not given they default to <EM>x1, y1</EM>, respectively.</P>
<DL>
<DT><STRONG><A NAME="item_selectionAdjust"><EM>$tixgrid</EM>-><STRONG>selectionAdjust</STRONG>(<EM>x1</EM>, <EM>y1</EM> ?,<EM>x2</EM>, <EM>y2</EM>?)</A></STRONG><BR>
<DD>
?docu here?
<P></P>
<DT><STRONG><A NAME="item_selectionClear"><EM>$tixgrid</EM>-><STRONG>selectionClear</STRONG>(<EM>x1</EM>, <EM>y1</EM> ?,<EM>x2</EM>, <EM>y2</EM>?)</A></STRONG><BR>
<DD>
?docu here?
<P></P>
<DT><STRONG><A NAME="item_selectionIncludes"><EM>$tixgrid</EM>-><STRONG>selectionIncludes</STRONG>(<EM>x1</EM>, <EM>y1</EM> ?,<EM>x2</EM>, <EM>y2</EM>?)</A></STRONG><BR>
<DD>
?docu here?
<P></P>
<DT><STRONG><A NAME="item_selectionSet"><EM>$tixgrid</EM>-><STRONG>selectionSet</STRONG>(<EM>x1</EM>, <EM>y1</EM> ?,<EM>x2</EM>, <EM>y2</EM>?)</A></STRONG><BR>
<DD>
?docu here?
<P></P>
<DT><STRONG><A NAME="item_selectionToggle"><EM>$tixgrid</EM>-><STRONG>selectionToggle</STRONG>(<EM>x1</EM>, <EM>y1</EM> ?,<EM>x2</EM>, <EM>y2</EM>?)</A></STRONG><BR>
<DD>
?docu here?
<P></P></DL>
<DT><STRONG><A NAME="item_set"><EM>$tixgrid</EM>-><STRONG>set</STRONG>(<EM>x</EM>, <EM>y</EM>?, <STRONG>-itemtype</STRONG>=><EM>type</EM>??, <EM>-option</EM>=><EM>value</EM>, <EM>...</EM>?)</A></STRONG><BR>
<DD>
Creates a new display item at the cell at (<EM>x</EM>,<EM>y</EM>). The optional
<STRONG>-itemtype</STRONG> parameter gives the type of the display item.
An additional list of <EM>option-value</EM> pairs specify options
of the display item. If a display item already exists at this cell,
the old item will be deleted automatically.
<P></P>
<DT><STRONG><A NAME="item_size"><EM>$tixgrid</EM>-><STRONG>size</STRONG>(<EM>dim</EM>, <EM>index</EM>?, <EM>-option</EM>??=><EM>value</EM>, <EM>...</EM>?)</A></STRONG><BR>
<DD>
<DT><STRONG><A NAME="item_sizeColumn"><EM>$tixgrid</EM>-><STRONG>sizeColumn</STRONG>(<EM>index</EM>?, <EM>-option</EM>??=><EM>value</EM>, <EM>...</EM>?)</A></STRONG><BR>
<DD>
<DT><STRONG><A NAME="item_sizeRow"><EM>$tixgrid</EM>-><STRONG>sizeRow</STRONG>(<EM>index</EM>?, <EM>-option</EM>??=><EM>value</EM>, <EM>...</EM>?)</A></STRONG><BR>
<DD>
Queries or sets the size of the row or column given by <EM>dim</EM> and
<EM>index</EM>. <EM>Dim</EM> may be <STRONG>row</STRONG> or <STRONG>column</STRONG>. <EM>Index</EM> may be any
non-negative integer that gives the position of a given row (or column).
<EM>Index</EM> can also be the string <STRONG>default</STRONG>; in this case, this method
queries or sets the default size of all rows (or columns).
When no <EM>option-value</EM> pair is given, this method returns
a list containing the current size setting of the given row (or column).
When <EM>option-value</EM> pairs are given, the corresponding options
of the size setting of the given row are changed. <EM>-option</EM> may be
one of the following:
<DL>
<DT><STRONG><A NAME="item_%2Dpad0_%3D%3E_pixels"><STRONG>-pad0</STRONG> => <EM>pixels</EM></A></STRONG><BR>
<DD>
Specifies the paddings to the left of a column or the top of a row.
<P></P>
<DT><STRONG><A NAME="item_%2Dpad1_%3D%3E_pixels"><STRONG>-pad1</STRONG> => <EM>pixels</EM></A></STRONG><BR>
<DD>
Specifies the paddings to the right of a column or the bottom of a row.
<P></P>
<DT><STRONG><A NAME="item_%2Dsize_%3D%3E_val"><STRONG>-size</STRONG> => <EM>val</EM></A></STRONG><BR>
<DD>
Specifies the width of a column or the height of a row.
<EM>Val</EM> may be: <STRONG>auto</STRONG> -- the width of the column is set
the widest cell in the column; a valid Tk screen distance
unit (see <STRONG>Tk_GetPixels</STRONG>); or a real number following by the
word <STRONG>chars</STRONG> (e.g. <STRONG>3.4chars</STRONG>) that sets the width of the
column to the given number of characters.
<P></P></DL>
<DT><STRONG><A NAME="item_sort"><EM>$tixgrid</EM>-><STRONG>sort</STRONG>(<EM>dimension</EM>, <EM>start</EM>, <EM>end</EM>, ?<EM>args ...</EM>?)</A></STRONG><BR>
<DD>
?docu here? (not supported on Win* OSs up to now)
<P></P>
<DT><STRONG><A NAME="item_unset"><EM>$tixgrid</EM>-><STRONG>unset</STRONG>(<EM>x</EM>, <EM>y</EM>)</A></STRONG><BR>
<DD>
Clears the cell at (<EM>x</EM>,<EM>y</EM>) by removing its display item.
<P></P>
<DT><STRONG><A NAME="item_xview"><EM>$tixgrid</EM>-><STRONG>xview</STRONG></A></STRONG><BR>
<DD>
?docu here?
<P></P>
<DT><STRONG><A NAME="item_yview"><EM>$tixgrid</EM>-><STRONG>yview</STRONG></A></STRONG><BR>
<DD>
?docu here?
<P></P></DL>
<P>
<HR>
<H1><A NAME="bindings">BINDINGS</A></H1>
<P>to be done.</P>
<P>
<HR>
<H1><A NAME="see also">SEE ALSO</A></H1>
<P><A HREF="../../../site/lib/Tk/DItem.html">Tk::DItem</A>
<A HREF="../../../site/lib/Tk/callbacks.html">Tk::callbacks</A>
<A HREF="../../../site/lib/Tk/FloatEntry.html">Tk::FloatEntry</A></P>
<P>
<HR>
<H1><A NAME="bugs">BUGS</A></H1>
<P>C code and bindings of TixGrid have some bugs.</P>
<P>
<HR>
<H1><A NAME="keywords">KEYWORDS</A></H1>
<P>tix, tixgrid, table, display item, spreadsheet</P>
<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH=100%>
<TR><TD CLASS=block VALIGN=MIDDLE WIDTH=100% BGCOLOR="#cccccc">
<STRONG><P CLASS=block> Tk::TixGrid - Create and manipulate Tix Grid widgets</P></STRONG>
</TD></TR>
</TABLE>
</BODY>
</HTML>