Class: Wx::WindowDisabler

Inherits:
Object
  • Object
show all
Defined in:
lib/wx/doc/gen/window_disabler.rb,
lib/wx/doc/window_disabler.rb

Overview

Note:

This class is untracked and should not be derived from nor instances extended!

This class disables all top level windows of the application (maybe with the exception of one of them) in its constructor and enables them back in its destructor.

This is useful when you want to indicate to the user that the application is currently busy and cannot respond to user input.

Note:

When instantiated, this affects only windows shown on the screen and not already disabled.

Category: Miscellaneous

See Also:

  • BusyCursor

Class Method Summary collapse

Class Method Details

.disable(to_skip = nil) ⇒ void

This method returns an undefined value.

Disables all top level windows of the application (maybe with the exception of one of them) in and enables them back after the given block has returned.

Parameters:

  • to_skip (Wx::Window, nil) (defaults to: nil)

    window to exclude from disabling



16
# File 'lib/wx/doc/window_disabler.rb', line 16

def self.disable(to_skip = nil) end