Bambookit Home    Bambookit GUI Tutorial

Next   

II. GUI Basics

Chapter 9. Widgets Styles




Alignment


Method signature

setAlign = "[string const]"
[string const] sets alignment of text within a widget. Valid values are: left, topleft, top, topright, right, bottomright, bottom, bottomleft.

NOTE: If set this property is inherited by its children.

Examples

In this example we will be using a button widget

.. setAlign="center"



.. setAlign="left"



.. setAlign="topleft"



.. setAlign="top"



.. setAlign="topright"



.. setAlign="right"



.. setAlign="bottomright"



.. setAlign="bottom"



.. setAlign="bottomleft"



Next