Class: Wx::PG::PGTextCtrlEditor
- Defined in:
- lib/wx/doc/gen/pg/pg_editor.rb
Overview
Direct Known Subclasses
Class Method Summary collapse
- .get_text_ctrl_value_from_control(variant, property, ctrl) ⇒ Boolean
- .on_text_ctrl_event(propgrid, property, ctrl, event) ⇒ Boolean
Instance Method Summary collapse
-
#create_controls(propgrid, property, pos, size) ⇒ Wx::Window, Array<Wx::Window,Wx::Window>
Instantiates editor controls.
-
#get_name ⇒ String
(also: #name)
Returns pointer to the name of the editor.
-
#get_value_from_control(variant, property, ctrl) ⇒ Boolean
(also: #value_from_control)
Returns value from control, via parameter variant.
- #initialize ⇒ Wx::PG::PGTextCtrlEditor constructor
-
#on_event(propgrid, property, wnd_primary, event) ⇒ Boolean
Handles events.
-
#on_focus(property, wnd) ⇒ void
Extra processing when control gains focus.
-
#set_control_string_value(property, ctrl, txt) ⇒ void
Sets control’s value specifically from string.
-
#update_control(property, ctrl) ⇒ void
Loads value from property to the control.
Methods inherited from PGEditor
#can_contain_custom_image, #delete_item, #draw_value, #insert_item, #set_control_appearance, #set_control_int_value, #set_value_to_unspecified
Methods inherited from Object
#clone, #dup, #is_same_as, #un_share
Constructor Details
#initialize ⇒ Wx::PG::PGTextCtrlEditor
511 |
# File 'lib/wx/doc/gen/pg/pg_editor.rb', line 511 def initialize; end |
Class Method Details
.get_text_ctrl_value_from_control(variant, property, ctrl) ⇒ Boolean
595 |
# File 'lib/wx/doc/gen/pg/pg_editor.rb', line 595 def self.get_text_ctrl_value_from_control(variant, property, ctrl) end |
.on_text_ctrl_event(propgrid, property, ctrl, event) ⇒ Boolean
589 |
# File 'lib/wx/doc/gen/pg/pg_editor.rb', line 589 def self.on_text_ctrl_event(propgrid, property, ctrl, event) end |
Instance Method Details
#create_controls(propgrid, property, pos, size) ⇒ Wx::Window, Array<Wx::Window,Wx::Window>
Instantiates editor controls.
- It is not necessary to call EvtHandler#bind for interesting editor events. All events from controls are automatically forwarded to Wx::PG::PGEditor#on_event and Wx::PG::PGProperty#on_event.
528 |
# File 'lib/wx/doc/gen/pg/pg_editor.rb', line 528 def create_controls(propgrid, property, pos, size) end |
#get_name ⇒ String Also known as: name
Returns pointer to the name of the editor.
For example, Wx::PG_EDITOR_TEXT_CTRL has name “TextCtrl”. If you don’t need to access your custom editor by string name, then you do not need to implement this function.
566 |
# File 'lib/wx/doc/gen/pg/pg_editor.rb', line 566 def get_name; end |
#get_value_from_control(variant, property, ctrl) ⇒ Boolean Also known as: value_from_control
Returns value from control, via parameter variant.
Usually ends up calling property’s StringToValue() or IntToValue(). Returns true if value was different.
559 |
# File 'lib/wx/doc/gen/pg/pg_editor.rb', line 559 def get_value_from_control(variant, property, ctrl) end |
#on_event(propgrid, property, wnd_primary, event) ⇒ Boolean
Handles events.
Returns true if value in control was modified (see Wx::PG::PGProperty#on_event for more information).
Wx::PG::PropertyGrid will automatically unfocus the editor when EVT_TEXT_ENTER is received and when it results in property value being modified. This happens regardless of editor type (i.e. behaviour is same for any TextCtrl and ComboBox based editor).
550 |
# File 'lib/wx/doc/gen/pg/pg_editor.rb', line 550 def on_event(propgrid, property, wnd_primary, event) end |
#on_focus(property, wnd) ⇒ void
This method returns an undefined value.
Extra processing when control gains focus.
For example, TextCtrl based controls should select all text.
582 |
# File 'lib/wx/doc/gen/pg/pg_editor.rb', line 582 def on_focus(property, wnd) end |
#set_control_string_value(property, ctrl, txt) ⇒ void
This method returns an undefined value.
Sets control’s value specifically from string.
574 |
# File 'lib/wx/doc/gen/pg/pg_editor.rb', line 574 def set_control_string_value(property, ctrl, txt) end |
#update_control(property, ctrl) ⇒ void
This method returns an undefined value.
Loads value from property to the control.
534 |
# File 'lib/wx/doc/gen/pg/pg_editor.rb', line 534 def update_control(property, ctrl) end |