Class: Wx::PG::PGCheckBoxEditor

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

Overview

Requires:

  • USE_PROPGRID

Instance Method Summary collapse

Methods inherited from PGEditor

#can_contain_custom_image, #delete_item, #insert_item, #on_focus, #set_control_appearance, #set_control_string_value

Methods inherited from Object

#clone, #dup, #is_same_as, #un_share

Constructor Details

#initializeWx::PG::PGCheckBoxEditor



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

def initialize; end

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:



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

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

#draw_value(dc, rect, property, text) ⇒ void

This method returns an undefined value.

Draws value for given property.

Parameters:



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

def draw_value(dc, rect, property, text) 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)


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

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.

Parameters:

Returns:

  • (Boolean)


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

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

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)


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

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

#set_control_int_value(property, ctrl, value) ⇒ void

This method returns an undefined value.

Sets control’s value specifically from int (applies to choice etc.).

Parameters:



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

def set_control_int_value(property, ctrl, value) end

#set_value_to_unspecified(property, ctrl) ⇒ void

This method returns an undefined value.

Sets value in control to unspecified.

Parameters:



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

def set_value_to_unspecified(property, ctrl) end

#update_control(property, ctrl) ⇒ void

This method returns an undefined value.

Loads value from property to the control.

Parameters:



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

def update_control(property, ctrl) end