Class: Wx::ChildFocusEvent

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

Overview

A child focus event is sent to a (parent-)window when one of its child windows gains focus, so that the window could restore the focus back to its corresponding child if it loses it now and regains later.

Notice that child window is the direct child of the window receiving event. Use Window.find_focus to retrieve the window which is actually getting focus.

Events using this class

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

Category: Events

See Also:

  • and Event Handling

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(win = nil) ⇒ Wx::ChildFocusEvent

Constructor.

Parameters:

  • win (Wx::Window) (defaults to: nil)

    The direct child which is (or which contains the window which is) receiving the focus.



2807
# File 'lib/wx/doc/gen/events.rb', line 2807

def initialize(win=nil) end

Instance Method Details

#get_windowWx::Window Also known as: window

Returns the direct child which receives the focus, or a (grand-)parent of the control receiving the focus.

To get the actually focused control use Window.find_focus.

Returns:



2813
# File 'lib/wx/doc/gen/events.rb', line 2813

def get_window; end