MyGUI align table        
Print

Alignment in MyGUI is behaviour that applied only when parent widget is changed, widget change it's position/size according to it's alignment.
If you want to make widget be resized on load you can use BaseLayout class and "SnapTo" userData, that do such thing. Or you can implement similar custom behaviour when loading layout.

HCenter   /**< centre horizontally */
VCenter   /**< centre vertically */
Center    /**< center in the dead center */

Left      /**< align from the left (and center vertically) */
Right     /**< align from the right (and center vertically) */
HStretch  /**< stretch horizontally proportionate to parent window (and center vertically) */

Top       /**< align from the top (and center horizontally) */
Bottom    /**< align from the bottom (and center horizontally) */
VStretch  /**< stretch vertically proportionate to parent window (and center horizontally) */

Stretch   /**< stretch proportionate to parent window */
Default   /**< default align (align from left and top) */

 
Flags also can be combined through | (pipe symbol), for example :

Left | VStretch            /**< align from the left and stretch vertically proportionate to parent window */    
HStretch | Bottom    /**< stretch horizontally proportionate to parent window and align from the bottom */

 


Contributors to this page: Altren791 points  , Spacegaier6073 points  and jacmoe180265 points  .
Page last modified on Friday 10 of February, 2012 14:43:13 UTC by Altren791 points .


The content on this page is licensed under the terms of the Creative Commons Attribution-ShareAlike License.
As an exception, any source code contributed within the content is released into the Public Domain.