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

#attach_frame, #detach_frame, #is_pack?, #is_place?, #is_undefined?, #layout_manager, #map, #refresh_layout_manager, #unmap

Constructor Details

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

Returns a new instance of AGTkSplittedFrames.



376
377
378
379
380
381
382
383
384
385
386
387
388
# File 'lib/a-tkcommons.rb', line 376

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.



374
375
376
# File 'lib/a-tkcommons.rb', line 374

def frame1
  @frame1
end

#frame2Object (readonly)

Returns the value of attribute frame2.



375
376
377
# File 'lib/a-tkcommons.rb', line 375

def frame2
  @frame2
end

Instance Method Details

#maximize(_frame) ⇒ Object



390
391
392
393
394
395
# File 'lib/a-tkcommons.rb', line 390

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

#minimize(_frame) ⇒ Object



397
398
399
400
401
402
# File 'lib/a-tkcommons.rb', line 397

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