Class: TkResizingTitledFrame

Inherits:
TkFrame
  • Object
show all
Includes:
TkResizable
Defined in:
lib/a-tkcommons.rb

Constant Summary

Constants included from TkResizable

TkResizable::MIN_HEIGHT, TkResizable::MIN_WIDTH

Instance Method Summary collapse

Methods included from TkResizable

#resizing_do_move_obj, #resizing_do_press, #start_resizing, #stop_resizing

Constructor Details

#initialize(parent = nil, *args) ⇒ TkResizingTitledFrame

Returns a new instance of TkResizingTitledFrame.



1937
1938
1939
1940
1941
1942
1943
1944
# File 'lib/a-tkcommons.rb', line 1937

def initialize(parent=nil, *args)
  super(parent, *args)
  @resizing_label=TkLabel.new(self, Arcadia.style('label')){
    text '-'
    image Arcadia.image_res(EXPAND_LIGHT_GIF)
  }.pack('side'=> 'right','anchor'=> 's')
  start_resizing(@resizing_label, self)
end