Class: AgMultiEditorView

Inherits:
Object
  • Object
show all
Defined in:
ext/ae-editor/ae-editor.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(parent = nil) ⇒ AgMultiEditorView

Returns a new instance of AgMultiEditorView.



3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
# File 'ext/ae-editor/ae-editor.rb', line 3151

def initialize(parent=nil)
  @enb = Tk::BWidget::NoteBook.new(parent,Arcadia.style('tabpanel')){
    tabbevelsize 0
    internalborderwidth 2
#      arcradius 4
#      activeforeground 'red'
#      activebackground 'yellow'
    #borderwidth 1
    side Arcadia.conf('editor.tabs.side')
    font Arcadia.conf('editor.tabs.font')
    pack('fill'=>'both', :padx=>0, :pady=>0, :expand => 'yes')
  }
  refresh_after_map = proc{
    if !@enb.pages.empty?
      if @enb.raise.nil? || @enb.raise.strip.length == 0
        @enb.raise(@enb.pages[0]) 
        @enb.see(@enb.pages[0])
      end
    end
  }
  @enb.bind_append("Map",refresh_after_map)
end

Instance Attribute Details

#enbObject (readonly)

Returns the value of attribute enb.



3150
3151
3152
# File 'ext/ae-editor/ae-editor.rb', line 3150

def enb
  @enb
end