Sha256: f17900e1a16a6052ad0415223b3aa61c4da0237440c338c22a4db30a4b0875a3

Contents?: true

Size: 979 Bytes

Versions: 6

Compression:

Stored size: 979 Bytes

Contents

module Tk
  module Tile
    class Sizegrip < Tk::Widget
      def self.tk_command; 'ttk::sizegrip'; end
      include TileWidget, Cget, Configure

      # # USAGE
      # 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

      # BUG: http://tcl.activestate.com/man/tcl8.5/TkCmd/ttk_sizegrip.htm
      # If the containing toplevel's position was specified relative to the
      # right or bottom of the screen (e.g., 'wm geometry ... wxh-x-y' instead
      # of "wm geometry ... wxh+x+y"), the sizegrip widget will not resize the
      # window. ttk::sizegrip widgets only support "southeast" resizing.
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
ffi-tk-2010.08.23 lib/ffi-tk/widget/tile/sizegrip.rb
ffi-tk-2010.08 lib/ffi-tk/widget/tile/sizegrip.rb
ffi-tk-2010.06 lib/ffi-tk/widget/tile/sizegrip.rb
ffi-tk-2010.03 lib/ffi-tk/widget/tile/sizegrip.rb
ffi-tk-2010.02 lib/ffi-tk/widget/tile/sizegrip.rb
ffi-tk-2010.01 lib/ffi-tk/widget/tile/sizegrip.rb