Topic index Glossary

# Look Alignment flags

Look Alignment flags Bevel flags MyBackground MyFrame MyStyle Suported hints Titlebar layout

- ### CONFIGURATION OPTIONS :

  Left

    Aligns image, text or block of buttons to the left of the widget.

  Top

    Aligns image, text or block of buttons to the top of the widget.

  Right

    Aligns image, text or block of buttons to the right of the widget.

  Bottom

    Align contents to the bottom of the widget.

  HTiled

    Tiles image to fill entire widget's width.

  VTiled

    Tiles image to fill entire widget's height.

  HScaled

    Scale contents to the width of the widget. If used in combination with LabelWidth - width of the text will be used insted of the width of the widget.

  VScaled

    Scale contents to the height of the widget. If used in combination with LabelHeight - height of the text will be used insted of the height of the widget.

  LabelSize

    Same as the combination of LabelWidth,LabelHeight.

  LabelWidth

    Has to be appplied to background image of the widget - it will cause this image to be resized (tiled or scaled) to the width of the widget's label (such as titlebar text).

  LabelHeight

    Has to be appplied to background image of the widget - it will cause this image to be resized (tiled or scaled) to the height of the widget's label (such as titlebar text).

  Center

    Align contents to the center of the widget. This is the same as combination of all of the Left,Right,Bottom,Top

  HCenter

    Horizontally align contents to the center. Same as combination of Left,Right.

  VCenter

    Vertically align contents to the center. Same as combination of Top,Bottom.

Align flags specify how contents of the widget should be aligned. Each widget is divided into the grid of 8x8 cells. Each of widget's visible items occupy one of the cells. Widget attempts to determine the size of each row and column, by using size of visible elements that occupy it's cells and its align flags.

Note that some visible items ( such as icons, images, text, buttons ) may occupy same cell that affecting the size of it.

Topic index Glossary Back to Top

AfterStep version 2.1.2