Class: Wx::ShowEvent

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

Overview

An event being sent when the window is shown or hidden.

The event is triggered by calls to Window#show, and any user action showing a previously hidden window or vice versa (if allowed by the current platform and/or window manager). Notice that the event is not triggered when the application is iconized (minimized) or restored under WXMSW.

Events using this class

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

Category: Events

See Also:

Instance Method Summary collapse

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(winid = 0, show = false) ⇒ Wx::ShowEvent

Constructor.

Parameters:

  • winid (Integer) (defaults to: 0)
  • show (Boolean) (defaults to: false)


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

def initialize(winid=0, show=false) end

Instance Method Details

#is_shownBoolean Also known as: shown?

Return true if the window has been shown, false if it has been hidden.

Returns:

  • (Boolean)


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

def is_shown; end

#set_show(show) ⇒ void Also known as: show=

This method returns an undefined value.

Set whether the windows was shown or hidden.

Parameters:

  • show (Boolean)


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

def set_show(show) end