Class: Wx::ChildFocusEvent
- Inherits:
-
CommandEvent
- Object
- Object
- Event
- CommandEvent
- Wx::ChildFocusEvent
- 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:
-
EvtHandler#evt_child_focus(meth = nil, &block): Process a EVT_CHILD_FOCUS event.
Category: Events
Instance Method Summary collapse
-
#get_window ⇒ Wx::Window
(also: #window)
Returns the direct child which receives the focus, or a (grand-)parent of the control receiving the focus.
-
#initialize(win = nil) ⇒ Wx::ChildFocusEvent
constructor
Constructor.
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.
2807 |
# File 'lib/wx/doc/gen/events.rb', line 2807 def initialize(win=nil) end |
Instance Method Details
#get_window ⇒ Wx::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.
2813 |
# File 'lib/wx/doc/gen/events.rb', line 2813 def get_window; end |