tko::grid -- extended ::grid command

SYNOPSIS

::tko::grid ?row column ?option value? ..? widget path ?widgetoptions?

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.

SEE ALSO

tko, grid, tko::state, tko::tip

KEYWORDS

grid, tooltip, autoscroll

COPYRIGHT

© 2021- RenĂ© Zaumseil r.zaumseil@freenet.de

BSD style license.