Method: RubyCurses::TextView#initialize
- Defined in:
- lib/rbcurse/core/widgets/rtextview.rb
#initialize(form = nil, config = {}, &block) ⇒ TextView
Returns a new instance of TextView.
45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 |
# File 'lib/rbcurse/core/widgets/rtextview.rb', line 45 def initialize form = nil, config={}, &block @focusable = true @editable = false @sanitization_required = true @suppress_borders = false @row_offset = @col_offset = 1 @row = 0 @col = 0 @show_focus = false # don't highlight row under focus @list = [] map_keys super # ideally this should have been 2 to take care of borders, but that would break # too much stuff ! @win = @graphic @_events.push :CHANGE # thru vieditable @_events << :PRESS # new, in case we want to use this for lists and allow ENTER @_events << :ENTER_ROW # new, should be there in listscrollable ?? install_keys # do something about this nonsense FIXME bordertitle_init init_vars init_actions end |