Method: AGTkPlaceManager#initialize

Defined in:
ext/ae-rad/lib/tk/al-tk.rb

#initialize(_agobj, _active = false) ⇒ AGTkPlaceManager

Returns a new instance of AGTkPlaceManager.



108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
# File 'ext/ae-rad/lib/tk/al-tk.rb', line 108

def initialize(_agobj, _active=false)
  #Tk.messageBox('message'=>_active.to_s)
  unless defined? _agobj.ag_parent
    return
  end
  @agobj = _agobj
  if !defined? @@place_managers
    @@place_managers = Array.new
  end
  if @agobj.ag_parent != nil
    @top = @agobj.ag_parent
    while @top.l_manager.simple_manager == nil
      @top = @top.ag_parent
    end
  end
  initx0x3
  flash
  obj_bind
  activate if _active
  object_inspector_select if _active
  @active = _active
  @last_layout = @agobj.props['layout_man']['manager']['get'].call
  @@place_managers << self
  @cursor = 'fleur'
end