Class: Wx::PG::PropertyGridEvent

Inherits:
CommandEvent show all
Defined in:
lib/wx/doc/gen/pg/property_grid_event.rb

Overview

A property grid event holds information about events associated with PropertyGrid objects.

To process input from a property grid control, use these event handler macros to direct input to member functions that take a PropertyGridEvent argument.

Events emitted by this class

The following event-handler methods redirect the events to member method or handler blocks for PropertyGridEvent events. Event handler methods for events emitted by this class:

Category: PropertyGrid, Events

Requires:

  • USE_PROPGRID

Instance Method Summary collapse

Methods inherited from CommandEvent

#client_data, #client_data=, #get_client_data, #get_client_object, #get_int, #get_selection, #get_string, #is_checked, #is_selection, #set_client_data, #set_client_object, #set_extra_long, #set_int, #set_string

Methods inherited from Event

#clone, #get_event_category, #get_event_object, #get_event_type, #get_id, #get_skipped, #get_timestamp, #is_command_event, #resume_propagation, #set_event_object, #set_event_type, #set_id, #set_timestamp, #should_propagate, #skip, #stop_propagation

Methods inherited from Object

#clone, #dup, #is_same_as, #un_share

Constructor Details

#initialize(commandType = 0, id = 0) ⇒ Wx::PG::PropertyGridEvent #initialize(event) ⇒ Wx::PG::PropertyGridEvent

Returns a new instance of PropertyGridEvent.

Overloads:



59
# File 'lib/wx/doc/gen/pg/property_grid_event.rb', line 59

def initialize(*args) end

Instance Method Details

#can_vetoBoolean Also known as: can_veto?

Returns true if you can veto the action that the event is signaling.

Returns:

  • (Boolean)


63
# File 'lib/wx/doc/gen/pg/property_grid_event.rb', line 63

def can_veto; end

#get_columnInteger Also known as: column

Returns the column index associated with this event.

For the column dragging events, it is the column to the left of the splitter being dragged

Returns:

  • (Integer)


70
# File 'lib/wx/doc/gen/pg/property_grid_event.rb', line 70

def get_column; end

#get_main_parentWx::PG::PGProperty Also known as: main_parent

Returns highest level non-category, non-root parent of property for which event occurred.

Useful when you have nested properties with children.

Remark:

If immediate parent is root or category, this will return the property itself.

Returns:



83
# File 'lib/wx/doc/gen/pg/property_grid_event.rb', line 83

def get_main_parent; end

#get_propertyWx::PG::PGProperty Also known as: property

Returns property associated with this event.

Remark:

You should assume that this property can always be NULL. For instance, EVT_PG_SELECTED is emitted not only when a new property is selected, but also when selection is cleared by user activity.

Returns:



94
# File 'lib/wx/doc/gen/pg/property_grid_event.rb', line 94

def get_property; end

#get_property_nameString Also known as: property_name

Returns name of the associated property.

Remark:

Property name is stored in event, so it remains accessible even after the associated property or the property grid has been deleted.

Returns:

  • (String)


110
# File 'lib/wx/doc/gen/pg/property_grid_event.rb', line 110

def get_property_name; end

#get_property_valueWx::Variant Also known as: property_value

Returns value of the associated property.

Works for all event types, but for EVT_PG_CHANGING this member function returns the value that is pending, so you can call #veto if the value is not satisfactory.

Remark:

Property value is stored in event, so it remains accessible even after the associated property or the property grid has been deleted.

Returns:



123
# File 'lib/wx/doc/gen/pg/property_grid_event.rb', line 123

def get_property_value; end

#get_validation_failure_behaviorInteger Also known as: validation_failure_behavior

Returns current validation failure flags.

Returns:

  • (Integer)


99
# File 'lib/wx/doc/gen/pg/property_grid_event.rb', line 99

def get_validation_failure_behavior; end

#get_valueWx::Variant Also known as: value

Returns value of the associated property.

Returns:

See Also:



131
# File 'lib/wx/doc/gen/pg/property_grid_event.rb', line 131

def get_value; end

#set_can_veto(canVeto) ⇒ void Also known as: can_veto=

This method returns an undefined value.

Set if event can be vetoed.

Parameters:

  • canVeto (Boolean)


137
# File 'lib/wx/doc/gen/pg/property_grid_event.rb', line 137

def set_can_veto(canVeto) end

#set_property(p) ⇒ void Also known as: property=

This method returns an undefined value.

Changes the property associated with this event.

Parameters:



143
# File 'lib/wx/doc/gen/pg/property_grid_event.rb', line 143

def set_property(p) end

#set_validation_failure_behavior(flags) ⇒ void Also known as: validation_failure_behavior=

This method returns an undefined value.

Set override validation failure behaviour.

Only effective if #veto was also called, and only allowed if event type is EVT_PG_CHANGING.

Parameters:

  • flags (Integer)


151
# File 'lib/wx/doc/gen/pg/property_grid_event.rb', line 151

def set_validation_failure_behavior(flags) end

#set_validation_failure_message(message) ⇒ void Also known as: validation_failure_message=

This method returns an undefined value.

Sets custom failure message for this time only.

Only applies if Wx::PG::PG_VALIDATION_FAILURE_BEHAVIOR_FLAGS::PG_VFB_SHOW_MESSAGE is set in validation failure flags.

Parameters:

  • message (String)


159
# File 'lib/wx/doc/gen/pg/property_grid_event.rb', line 159

def set_validation_failure_message(message) end

#veto(veto = true) ⇒ void

This method returns an undefined value.

Call this from your event handler to veto action that the event is signaling.

You can only veto a shutdown if #can_veto returns true.

Remark:

Currently only EVT_PG_CHANGING supports vetoing.

Parameters:

  • veto (Boolean) (defaults to: true)


173
# File 'lib/wx/doc/gen/pg/property_grid_event.rb', line 173

def veto(veto=true) end

#was_vetoedBoolean

Returns true if event was vetoed.

Returns:

  • (Boolean)


177
# File 'lib/wx/doc/gen/pg/property_grid_event.rb', line 177

def was_vetoed; end