wxRuby Documentation Home

# Wx::NotebookSizer

This class is deprecated and should not be used in new code! It is no
longer needed, *Notebook* control can be inserted
into any sizer class and its minimal size will be determined correctly.
See *Sizer overview* for more information.

NotebookSizer is a specialized sizer to make sizers work in connection
with using notebooks. This sizer is different from any other sizer as
you must not add any children to it – instead, it queries the notebook class itself.
The only thing this sizer does is to determine the size of the biggest
page of the notebook and report an adjusted minimal size to a more toplevel
sizer.

## Derived from

Sizer

Object

## See also

Sizer, Notebook, Sizer overview

## Methods

- NotebookSizer.new
- NotebookSizer#get_notebook

### NotebookSizer.new

NotebookSizer.new(%(arg-type)Notebook% notebook)

Constructor. It takes an associated notebook as its only parameter.

### NotebookSizer#get_notebook

Notebook get_notebook()

Returns the notebook associated with the sizer.

[This page automatically generated from the Textile source at 2023-06-09 00:45:25 +0000]