# tko::grid(n) -- extended ::grid command

*   [SYNOPSIS](#SYNOPSIS)
*   [DESCRIPTION](#DESCRIPTION)  
*   [SEE ALSO](#SEE-ALSO)  
*   [KEYWORDS](#KEYWORDS)  
*   [COPYRIGHT](#COPYRIGHT)  

<a name="SYNOPSIS"></a>
## SYNOPSIS

[**::tko::grid**](#tko::grid) *?row column ?option value? ..? widget path ?widgetoptions?*

<a name="DESCRIPTION"></a>
## DESCRIPTION

> At first the command checks the very first parameter. If this is no integer value then the leading *?row column ?option value? ..?* part is missing and the original Tk [grid][] command will be called.

> Otherwise the *row* and *column* values will be used in the call to grid the *widget*.

> The following ?option value? pairs will be used in the Tk [grid] call to place the *widget*:

> **-columnspan** *n*

> **-in** *container*

> **-ipadx** *amount*

> **-ipady** *amount*

> **-rowspan** *n*

> **-sticky** *style*

> The following ?option value? pairs will be used in the **grid columnconfigure** call to configure the placement:

> **-cminsize** *n* will be used as *-minsize n*.

> **-cweight** *n* will be used as *-weight n*.

> **-cuniform** *tag* will be used as *-uniform tag*.

> **-cpad** *padding* will be used as *-pad padding*.

> The following ?option value? pairs will be used in the **grid rowconfigure** call to configure the placement:

> **-rminsize** *n* will be used as *-minsize n*.

> **-rweight** *n* will be used as *-weight n*.

> **-runiform** *tag* will be used as *-uniform tag*.

> **-rpad** *padding* will be used as *-pad padding*.

> The following ?option value? pairs have a special meaning in **tko::grid**:

> **-tip** *text* will be uesd as tooltip text using the [tko::tip][] widget.

> **-tipinfo** *text* will be uesd as detailed tooltip text using the [tko::tip][] widget.

> **-tipimage** *image* will be uesd as tooltip image using the [tko::tip][] widget.

> **-statevar** *name* will be use to toggle configrue the *-state* option of the *widget* using *name* in the [tko::state][] command.

> **-sb** *?neswa?* will be used to create scrollbars for the given *widget*. The original *widget* is still available under the name "*path*.0". The given letters have the following meaning:

>> ?a? Scrollbars will automatically appear and disappear.

>> ?n? An scrollbar will be created north of the *widget*.

>> ?e? An scrollbar will be created east of the *widget*.

>> ?s? An scrollbar will be created south of the *widget*.

>> ?w? An scrollbar will be created west of the *widget*.

<a name="SEE-ALSO"></a>
## SEE ALSO

[tko][], [grid][], [tko::state][], [tko::tip][]

<a name="KEYWORDS"></a>
## KEYWORDS

grid, tooltip, autoscroll

<a name="COPYRIGHT"></a>
## COPYRIGHT

&copy; 2021- René Zaumseil <r.zaumseil@freenet.de>

BSD style license.

[tko]: <https://chiselapp.com/user/rene/repository/tko/home>
[grid]: <https://www.tcl.tk/man/tcl/TkCmd/grid.htm>
[tko::state]: <https://wwwiselapp.com/user/rene/repository/tko/doc/trunk/toc/tko_state.md5>
[tko::tip]: <https://wwwiselapp.com/user/rene/repository/tko/doc/trunk/toc/tko_tip.md5>
[tooltip::tooltip]: <https://core.tcl-lang.org/tklib/doc/trunk/embedded/www/tklib/files/modules/tooltip/tooltip.html>

