Class: HinnerSplittedDialogTitled

Inherits:
HinnerSplittedDialog show all
Defined in:
lib/a-tkcommons.rb

Instance Attribute Summary collapse

Attributes inherited from HinnerSplittedDialog

#frame, #splitter_frame

Instance Method Summary collapse

Methods inherited from HinnerDialog

#is_modal?, #release, #show_modal

Constructor Details

#initialize(title = nil, side = 'top', height = 100, args = nil) ⇒ HinnerSplittedDialogTitled

Returns a new instance of HinnerSplittedDialogTitled.



2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
# File 'lib/a-tkcommons.rb', line 2902

def initialize(title=nil, side='top', height=100, args=nil)
  super(side, height, args)
  btf = TkLabelTitledFrameClosable.new(self.frame, title).place('x'=>0, 'y'=>0,'relheight'=>1, 'relwidth'=>1)
  close = proc{
    self.destroy
    Tk.callback_break
  }
  btf.add_close_action(close)
  @hinner_frame = btf.frame
end

Instance Attribute Details

#hinner_frameObject

Returns the value of attribute hinner_frame.



2901
2902
2903
# File 'lib/a-tkcommons.rb', line 2901

def hinner_frame
  @hinner_frame
end