- explicitly by the
- user or calculated internally when using wxDefaultSize) is interpreted as
- the minimal and in many
- cases also the initial size.
- @param sizer
- The (child-)sizer to be added to the sizer. This allows placing a child
- sizer in a
- sizer and thus to create hierarchies of sizers (typically a vertical box as
- the top sizer and several
- horizontal boxes on the level beneath).
- @param width and height
- The dimension of a spacer to be added to the sizer. Adding spacers to sizers
- gives more flexibility in the design of dialogs; imagine for example a
- horizontal box with two buttons at the
- bottom of a dialog: you might want to insert a space between the two
- buttons and make that space stretchable
- using the proportion flag and the result will be that the left button will
- be aligned with the left
- side of the dialog and the right button with the right side - the space in
- between will shrink and grow with
- the dialog.
- @param proportion
- Although the meaning of this parameter is undefined in wxSizer, it is used
- in wxBoxSizer
- to indicate if a child of a sizer can change its size in the main
- orientation of the wxBoxSizer - where
- 0 stands for not changeable and a value of more than zero is interpreted
- relative to the value of other
- children of the same wxBoxSizer. For example, you might have a horizontal
- wxBoxSizer with three children, two
- of which are supposed to change their size with the sizer. Then the two
- stretchable windows would get a
- value of 1 each to make them grow and shrink equally with the sizer's
- horizontal dimension.
- @param flag
- This parameter can be used to set a number of flags
- which can be combined using the binary OR operator |. Two main
- behaviours are defined using these flags. One is the border around a
- window: the border parameter determines the border width whereas
- the flags given here determine which side(s) of the item that the
- border will be added. The other flags determine how the sizer item
- behaves when the space allotted to the sizer changes, and is somewhat
- dependent on the specific kind of sizer used.
-
-
-
-
-
-
- wxTOP
-
- wxBOTTOM
-
- wxLEFT
-
- wxRIGHT
-
- wxALL
-
-
-
-
- These flags are used to specify which side(s) of
- the sizer item the border width will apply to.
-
-
-
-
-
- wxEXPAND
-
-
-
-
- The item will be expanded to fill
- the space assigned to the item.
-
-
-
-
-
- wxSHAPED
-
-
-
-
- The item will be expanded as much
- as possible while also maintaining its aspect ratio
-
-
-
-
-
- wxFIXED_MINSIZE
-
-
-
-
- Normally wxSizers will use
- GetAdjustedBestSize to
- determine what the minimal size of window items should be, and will
- use that size to calculate the layout. This allows layouts to
- adjust when an item changes and its best size becomes
- different. If you would rather have a window item stay the size it
- started with then use wxFIXED_MINSIZE.
-
-
-
-
-
- wxALIGN_CENTER wxALIGN_CENTRE
-
- wxALIGN_LEFT