layout for subelement configured in style, for this example it look as
Code: Select all
FileOpenDialog
{
source : 5,5,5,5;
destination : 5,5,5,5;
minSize : 400, 500;
[Normal]
{
texture : WindowBackground.psd;
}
+Caption
{
margin : 5, 25, 25, 75;
align : leftup, scale, leftup, scale;
}
+WindowCloseButton : WindowCloseButton
{
margin : 5, 25, 25, 5;
align : leftup, rightdown, leftup, rightdown;
}
+ButtonOk : ButtonOk
{
margin : 30, 5, 5, 50;
align : rightdown, leftup, rightdown, scale;
}
+ButtonCancel : ButtonCancel
{
margin : 30, 50, 5, 5;
align : rightdown, scale, rightdown, rightdown;
}
+EditBox : EditBox
{
margin : 55, 5, 35, 5;
align : rightdown, leftup, rightdown, rightdown;
}
+ListBox : ListBox
{
margin : 5, 5, 60, 5;
align : leftup, leftup, rightdown, rightdown;
}
}