Enum SizerFlag
Enumerates flags which customize ISizer behavior and appearance.
[Flags]
public enum SizerFlag
Fields
AlignBottom = 1024Content is vertically aligned at the bottom.
AlignBottomLeft = 1024Content is vertically aligned at the bottom, and horizontally aligned on the left.
AlignBottomRight = AlignRight | AlignBottomContent is vertically aligned at the bottom, and horizontally aligned on the right.
AlignCenter = AlignCenterHorizontal | AlignCenterVerticalContent is aligned at the center.
AlignCenterHorizontal = 256Content is horizontally aligned on the center.
AlignCenterRight = AlignRight | AlignCenterVerticalContent is vertically aligned at the center, and horizontally aligned on the right.
AlignCenterVertical = 2048Content is vertically aligned at the center.
AlignLeft = 0Content is horizontally aligned on the left.
AlignRight = 512Content is horizontally aligned on the right.
AlignTop = 0Content is vertically aligned at the top.
AlignTopLeft = 0Content is vertically aligned at the top, and horizontally aligned on the left.
AlignTopRight = Top | AlignRightContent is vertically aligned at the top, and horizontally aligned on the right.
All = Left | Right | Top | BottomBorder width will be applied to all sides of the sizer item.
Bottom = 128Border width will be applied to the bottom side of the sizer item.
Expand = 8192The item will be expanded to fill the space assigned to the item. When used for the items of IBoxSizer, the expansion only happens in the transversal direction of the sizer as only the item proportion governs its behaviour in the principal sizer direction. But when it is used for the items of IGridSizer, this flag can be combined with the alignment flags which override it in the corresponding direction if specified, e.g. (Expand | AlignCenterVertical) would expand the item only horizontally but center it vertically. Notice that this doesn't work for the default left/top alignment and Expand still applies in both directions if it is combined with wxALIGN_LEFT or wxALIGN_TOP.
FixedMinSize = 32768Normally sizers use the "best", i.e. most appropriate, size of the control to determine what the minimal size of control items should be. This allows layouts to adjust correctly when the item contents, and hence its best size, changes. If this behaviour is unwanted, FixedMinSize can be used to fix minimal size of the control to its initial value and not change it any more in the future. Note that the same thing can be accomplished by setting MinimumSize explicitly as well.
Left = 16Border width will be applied to the left side of the sizer item.
ReserveSpaceEvenIfHidden = 2Normally sizers don't allocate space for hidden controls or other items. This flag overrides this behaviour so that sufficient space is allocated for the control even if it isn't visible. This makes it possible to dynamically show and hide controls without resizing parent dialog, for example.
Right = 32Border width will be applied to the right side of the sizer item.
Shaped = 16384The item will be expanded as much as possible while also maintaining its aspect ratio.
Top = 64Border width will be applied to the top side of the sizer item.