SourceForge.net Sizers

Sizers

Sizers
Automatically manage resizing controls

Sizers take care of resizing and repositioning controls within a window whenever the window is resized. Sizers may be nested within each other to create complex relationships between the controls in a window.

The most common sizer used will be the wxBoxSizer.

Functions/Procedures
Subtopics

Sizers

[proc]
add_sizer_to_sizer
( atom sizer1, atom sizer2, atom option, atom flag, atom border )

Category: Sizers

This adds sizer2 to sizer1.


Sizers

[proc]
add_window_to_sizer
( atom sizer, atom window, atom option, atom flag, atom border )

Category: Sizers

This adds the specified window (i.e., control) to the sizer.


Sizers

[func]
fit_window
( atom sizer, atom window )

Category: Sizers

Tell the sizer to resize the window to match the sizer's minimal size. Returns the new size.


Sizers

[func]
get_sizer_minsize
( atom sizer )

Category: Sizers

Returns the minimal size of the sizer. This is either the combined minimal size of all the children and their borders or the minimal size set by SetMinSize, epending on which is bigger


Sizers

[func]
get_sizer_position
( atom sizer )

Category: Sizers

Returns the current position of the sizer.


Sizers

[func]
get_sizer_size
( atom sizer )

Category: Sizers

Returns the current size of the sizer.


Sizers

[proc]
set_sizer
( atom window, atom sizer )

Category: Sizers

This must be called before a sizer will resize its children. window is the parent window of the controls to be resized. The sizer will resize and reposition its children based on window.


Sizers

[func]
sizer_calc_min
( atom sizer )

Category: Sizers

Here, the sizer will do the actual calculation of its children minimal sizes. The size is returned as a sequence.


Sizers

[proc]
space_sizer
( atom sizer, atom width, atom height, atom option, atom flag, atom border)

Category: Sizers

Adds a blank region to the sizer in order to space controls within a sizer.