4.10 Layout hints

The FXPacker, FXTopWindow, and FXGroupBox widgets accept the following layout hints in their children:

LAYOUT_SIDE_TOP

Attaches a widget to the top side of the cavity. LAYOUT_SIDE_TOP is the default layout hint.

LAYOUT_SIDE_BOTTOM

Attaches a widget to the bottom side of the cavity.

LAYOUT_SIDE_LEFT

Attaches a widget to the left side of the cavity.

LAYOUT_SIDE_RIGHT

Attaches a widget to the right side of the cavity.

You should specify only one of the LAYOUT_SIDE_* hints per child. The top and bottom hints effectively reduce the height of the available space remaining to place other children. The left and right hints effectively reduce the width of the available space remaining to place other children.

All layout managers support the following layout hints:

FXPacker, FXTopWindow, and FXGroupBox must use LAYOUT_LEFT and LAYOUT_RIGHT with LAYOUT_SIDE_TOP and LAYOUT_SIDE_BOTTOM. The ABAQUS GUI Toolkit ignores hints if they do not make sense; for example, FXHorizontalFrame ignores LAYOUT_TOP and LAYOUT_BOTTOM. Similar rules apply for the other hints.

The majority of widgets in the ABAQUS GUI Toolkit have width and height arguments in their constructors. In most cases you can accept the default value of zero for these arguments, which allows the application to determine the proper size of the widget. However, in some cases you will need to set specific values for the width and height of a widget. To set the width and height, you must pass the LAYOUT_FIX_WIDTH and LAYOUT_FIX_HEIGHT flags to the options argument of the widget. If you do not pass these flags to the options argument, the toolkit will ignore the values that you specified for the width and height.

Layout hints are described in detail in Appendix C, Layout hints.”