Module: WidgetWrapper::Controls

Defined in:
lib/wx_wrapper/control.rb

Instance Method Summary collapse

Instance Method Details

#text_box(name, options = {}) ⇒ Object



3
4
5
6
7
8
9
10
# File 'lib/wx_wrapper/control.rb', line 3

def text_box(name, options={})
  value = options[:value] ||= ""
  position_array_to_instance(options)
  size_array_to_instance(options)
  style_array_to_constants(options) 
   
  Wx::TextCtrl.new(self, -1, value, options[:position], options[:size], options[:style])
end