Class: Wx::DialogLayoutAdapter

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

Overview

This abstract class is the base for classes that help wxWidgets perform run-time layout adaptation of dialogs.

Principally, this is to cater for small displays by making part of the dialog scroll, but the application developer may find other uses for layout adaption. By default, there is one instance of StandardDialogLayoutAdapter which can perform adaptation for most custom dialogs and dialogs with book controls such as PropertySheetDialog.

Category: Window Layout

See Also:

  • Scrolled Dialogs

Instance Method Summary collapse

Constructor Details

#initializeWx::DialogLayoutAdapter

Default constructor.



514
# File 'lib/wx/doc/gen/dialog.rb', line 514

def initialize; end

Instance Method Details

#can_do_layout_adaptation(dialog) ⇒ Boolean Also known as: can_do_layout_adaptation?

Override this to returns true if adaptation can and should be done.

Parameters:

Returns:

  • (Boolean)


519
# File 'lib/wx/doc/gen/dialog.rb', line 519

def can_do_layout_adaptation(dialog) end

#do_layout_adaptation(dialog) ⇒ Boolean

Override this to perform layout adaptation, such as making parts of the dialog scroll and resizing the dialog to fit the display.

Normally this function will be called just before the dialog is shown.

Parameters:

Returns:

  • (Boolean)


527
# File 'lib/wx/doc/gen/dialog.rb', line 527

def do_layout_adaptation(dialog) end