Class: Wx::SpinEvent

Inherits:
NotifyEvent show all
Defined in:
lib/wx/doc/gen/spin_event.rb

Overview

This event class is used for the events generated by SpinButton and SpinCtrl.

Events using this class

The following event-handler methods redirect the events to member method or handler blocks for SpinEvent events. Event handler methods:

Note that if you handle both SPIN and UP or DOWN events, you will be notified about each of them twice: first the UP/DOWN event will be received and then, if it wasn’t vetoed, the SPIN event will be sent.

Category: Events

See Also:

Requires:

  • USE_SPINBTN or USE_SPINCTRL

Instance Method Summary collapse

Methods inherited from NotifyEvent

#allow, #is_allowed, #veto

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 = Wx::EVT_NULL, id = 0) ⇒ Wx::SpinEvent

The constructor is not normally used by the user code.

Parameters:

  • commandType (Wx::GenericCollapsiblePane::EventType) (defaults to: Wx::EVT_NULL)
  • id (Integer) (defaults to: 0)


35
# File 'lib/wx/doc/gen/spin_event.rb', line 35

def initialize(commandType=Wx::EVT_NULL, id=0) end

Instance Method Details

#get_positionInteger Also known as: position

Retrieve the current spin button or control value.

Returns:

  • (Integer)


39
# File 'lib/wx/doc/gen/spin_event.rb', line 39

def get_position; end

#set_position(pos) ⇒ void Also known as: position=

This method returns an undefined value.

Set the value associated with the event.

Parameters:

  • pos (Integer)


45
# File 'lib/wx/doc/gen/spin_event.rb', line 45

def set_position(pos) end