Class: Lustr4Wx::TextArea

Inherits:
Wx::TextCtrl
  • Object
show all
Includes:
Lustr::WidgetBase
Defined in:
lib/lustr-wx/text_area.rb

Instance Method Summary collapse

Instance Method Details

#init_options(options) ⇒ Object



32
33
34
35
36
37
# File 'lib/lustr-wx/text_area.rb', line 32

def init_options(options)
	super

	text=option(:text)
	evt_text(get_id()) { |e| raise_event(option(:on_change), e) } if option(:on_change)
end

#textObject



28
29
30
# File 'lib/lustr-wx/text_area.rb', line 28

def text
	return get_value
end

#text=(value) ⇒ Object



24
25
26
# File 'lib/lustr-wx/text_area.rb', line 24

def text=(value)
	set_value (value ? value : '')
end