Class: Wx::PG::PGSpinCtrlEditor

Inherits:
PGTextCtrlEditor show all
Defined in:
lib/wx/doc/gen/pg/pg_editor.rb

Overview

Requires:

  • USE_PROPGRID

Instance Method Summary collapse

Methods inherited from PGTextCtrlEditor

get_text_ctrl_value_from_control, #get_value_from_control, #initialize, #on_focus, on_text_ctrl_event, #set_control_string_value, #update_control

Methods inherited from PGEditor

#can_contain_custom_image, #delete_item, #draw_value, #get_value_from_control, #initialize, #insert_item, #on_focus, #set_control_appearance, #set_control_int_value, #set_control_string_value, #set_value_to_unspecified, #update_control

Methods inherited from Object

#clone, #dup, #initialize, #is_same_as, #un_share

Constructor Details

This class inherits a constructor from Wx::PG::PGTextCtrlEditor

Instance Method Details

#create_controls(propgrid, property, pos, size) ⇒ Wx::Window, Array<Wx::Window,Wx::Window>

Instantiates editor controls.

Remark:

- 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.

Parameters:

Returns:



628
# File 'lib/wx/doc/gen/pg/pg_editor.rb', line 628

def create_controls(propgrid, property, pos, size) end

#get_nameString 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.

Returns:

  • (String)


610
# File 'lib/wx/doc/gen/pg/pg_editor.rb', line 610

def get_name; 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).

Remark:

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).

Parameters:

Returns:

  • (Boolean)


644
# File 'lib/wx/doc/gen/pg/pg_editor.rb', line 644

def on_event(propgrid, property, wnd_primary, event) end