Class: AGTkSplittedFrames

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

Direct Known Subclasses

AGTkOSplittedFrames, AGTkVSplittedFrames

Instance Attribute Summary collapse

Attributes inherited from TkFrameAdapter

#frame

Instance Method Summary collapse

Methods inherited from TkFrameAdapter

#add_moved_by, #attach_frame, #detach_frame, #is_pack?, #is_place?, #refresh, #unmap

Methods included from TkMovable

#moving_do_move_obj, #moving_do_press, #start_moving, #stop_moving

Constructor Details

#initialize(parent = nil, frame = nil, length = 10, slen = 5, user_control = true, keys = nil) ⇒ AGTkSplittedFrames

Returns a new instance of AGTkSplittedFrames.



307
308
309
310
311
312
313
314
315
316
317
318
319
# File 'lib/a-tkcommons.rb', line 307

def initialize(parent=nil, frame=nil, length=10, slen=5, user_control=true, keys=nil)
  if keys.nil?
    keys = Hash.new
  end
  keys.update(Arcadia.style('panel'))
  super(parent, keys)
  @parent = parent
  @slen = slen
  @user_control = user_control
  if frame
    self.attach_frame(frame)
  end
end

Instance Attribute Details

#frame1Object (readonly)

Returns the value of attribute frame1.



305
306
307
# File 'lib/a-tkcommons.rb', line 305

def frame1
  @frame1
end

#frame2Object (readonly)

Returns the value of attribute frame2.



306
307
308
# File 'lib/a-tkcommons.rb', line 306

def frame2
  @frame2
end

Instance Method Details

#maximize(_frame) ⇒ Object



321
322
323
324
325
326
# File 'lib/a-tkcommons.rb', line 321

def maximize(_frame)
  p = TkWinfo.parent(@frame)
  if p.kind_of?(AGTkSplittedFrames)
    p.maximize(@frame)
  end
end

#minimize(_frame) ⇒ Object



328
329
330
331
332
333
# File 'lib/a-tkcommons.rb', line 328

def minimize(_frame)
  p = TkWinfo.parent(@frame)
  if p.kind_of?(AGTkSplittedFrames)
    p.minimize(@frame)
  end
end