AFXVerticalAligner

This class is used to automatically vertically align its children "container" widgets (e.g. AFXTextField or AFXComboBox). The width of the first widget in the container of each child of the vertical aligner is set to the width of the widest first widget of all the vertical aligner's children.


AFXVerticalAligner(p, opts=0, x=0, y=0, w=0, h=0, pl=0, pr=0, pt=0, pb=0, hs=DEFAULT_SPACING, vs=DEFAULT_SPACING)

Constructor.

ArgumentTypeDefaultDescription
pFXComposite Parent widget.
optsInt0Options and hints.
xInt0X coordinate of the origin.
yInt0Y coordinate of the origin.
wInt0Width of the widget.
hInt0Height of the widget.
plInt0Left padding (margin).
prInt0Right padding (margin).
ptInt0Top padding (margin).
pbInt0Bottom padding (margin).
hsIntDEFAULT_SPACINGHorizontal spacing.
vsIntDEFAULT_SPACINGVertical spacing.


create()

Creates the aligner.

Reimplemented from FXComposite.


getDefaultHeight()

Returns the default height.

Reimplemented from FXVerticalFrame.


getDefaultWidth()

Returns the default width.

Reimplemented from FXVerticalFrame.