logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

ttk::sizegrip - Bottom-right corner resize widget

Bugs

       If  the containing toplevel's position was specified relative to the right or bottom of the screen (e.g.,
       “wmgeometry...wxh-x-y” instead of “wmgeometry...wxh+x+y”), the sizegrip widget will not resize  the
       window.

       ttk::sizegrip widgets only support “southeast” resizing.

Description

       A  ttk::sizegrip  widget  (also  known  as  a growbox) allows the user to resize the containing toplevel
       window by pressing and dragging the grip.

Examples

       Using pack:
              pack [ttk::frame $top.statusbar] -side bottom -fill x
              pack [ttk::sizegrip $top.statusbar.grip] -side right -anchor se

       Using grid:
              grid [ttk::sizegrip $top.statusbar.grip] \
                  -row $lastRow -column $lastColumn -sticky se
              # ... optional: add vertical scrollbar in $lastColumn,
              # ... optional: add horizontal scrollbar in $lastRow

Keywords

       widget, sizegrip, grow box

Tk                                                     8.5                                    ttk::sizegrip(3tk)

Name

       ttk::sizegrip - Bottom-right corner resize widget

Platform-Specific Notes

       On macOS, toplevel windows automatically include a built-in size grip by default.  Adding a ttk::sizegrip
       there is harmless, since the built-in grip will just mask the widget.

See Also

       ttk::widget(3tk)

Standard Options

-class-cursor-style-takefocus

       See the ttk_widget manual entry for details on the standard options.

Styling Options

       The class name for a ttk::sizegrip is TSizegrip.

       TSizegrip styling options configurable with ttk::style are:

       -backgroundcolor

       Some options are only available for specific themes.

       See the ttk::style manual page for information on how to configure ttk styles.

Synopsis

ttk::sizegrippathName ?options?
________________________________________________________________________________________________________________

Widget Command

       Sizegrip widgets support the standard commands cget, configure,  identifyelement,  instate,  state  and
       style (see ttk::widget).

See Also