Aligment doesn't work


02-01-2010 09:42:30

Hi I'm new to myGui so maybe I'm doing something wrong.
I have a skin with a button which I want to align to bottom left corner(like start button in windows).

<?xml version="1.0" encoding="UTF-8"?>
<MyGUI type="Layout">
<Widget type="Button" skin="ButtonHolo" position="0 100 88 32" align="Left Bottom" layer="Back" name="MainMenueButton">
<Property key="Widget_Caption" value="Menu"/>
<Widget type="PopupMenu" skin="PopupMenuHolo" position="0 36 154 102" layer="Popup" name="MainMenuePopUp">
<Widget type="MenuItem" skin="PopupMenuLineHolo" position="0 0 106 20">
<Property key="Widget_Caption" value="Start Battle"/>
<Property key="MenuItem_Id" value="Start_Battle"/>
<Widget type="MenuItem" skin="PopupMenuLineHolo" position="0 20 106 20">
<Property key="Widget_Caption" value="Show debug"/>
<Property key="MenuItem_Id" value="DbgShow"/>
<Widget type="MenuItem" skin="PopupMenuLineHolo" position="0 40 106 20">
<Property key="Widget_Caption" value="Exit"/>
<Property key="MenuItem_Id" value="Exit"/>

then in my code i call:
MyGUI::VectorWidgetPtr menu_items = MyGUI::LayoutManager::getInstance().load(LayOut);

And it doesn't align.I've tried different parameters to align and it did not work.
I'm using MyGUI 2.2.3 by the way.

03-01-2010 08:17:15