Class: Lustr4Wx::TextAreaBuilder

Inherits:
Lustr::BuilderBase
  • Object
show all
Defined in:
lib/lustr-wx/text_area.rb

Instance Method Summary collapse

Instance Method Details

#build(parent_widget) ⇒ Object



41
42
43
44
45
46
47
48
49
50
51
52
# File 'lib/lustr-wx/text_area.rb', line 41

def build(parent_widget)
	flags=Wx::TE_MULTILINE

	if options[:read_only]
		flags|=Wx::TE_READONLY
	end
	
	field=Lustr4Wx::Field.new(parent_widget, -1, '', Wx::DEFAULT_POSITION,
														Wx::DEFAULT_SIZE, flags)

	return field
end