Class: Wx::DialogLayoutAdapter
- Inherits:
-
Object
- Object
- Wx::DialogLayoutAdapter
- 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
Instance Method Summary collapse
-
#can_do_layout_adaptation(dialog) ⇒ Boolean
(also: #can_do_layout_adaptation?)
Override this to returns true if adaptation can and should be done.
-
#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.
-
#initialize ⇒ Wx::DialogLayoutAdapter
constructor
Default constructor.
Constructor Details
#initialize ⇒ Wx::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.
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.
527 |
# File 'lib/wx/doc/gen/dialog.rb', line 527 def do_layout_adaptation(dialog) end |