why my windows style not work?

kom

28-11-2010 14:49:11

Hi, all
I am trying to make my gui interface, but i have some problem:
Here I add my code on core_skin.xml, just want to make a window style which has minsize button, maxsize button and close button:
<Resource type="ResourceSkin" name = "WindowKom" size = "68 49" texture = "#{MyGUI_Theme_Texture}" >
<Property key="ToStick" value = "true" />

<Child type="Button" skin="WindowCaptionSmall" offset = "0 0 2 28" align = "HStretch Top" name = "Caption">
<Property key="Scale" value = "1 1 0 0"/>
</Child>

<Child type="Widget" skin="DefaultClient" offset = "4 31 58 12" align = "Stretch" name = "Client"/>

<Child type="Button" skin="WindowResizeRight" offset = "57 38 9 9" align = "Right Bottom" name = "Action">
<Property key="Scale" value = "0 0 1 1"/>
</Child>
<Child type="Button" skin="WindowResizeLeft" offset = "0 38 9 9" align = "Left Bottom" name = "Action">
<Property key="Scale" value = "1 0 -1 1"/>
</Child>

<Child type="Button" skin="ButtonX" offset = "43 6 18 17" align = "Right Top" name = "Button">
<Property key="Event" value = "close"/>
</Child>

<Child type="Button" skin="ButtonV" offset = "24 7 17 15" align = "Right Top" name = "Button">
<Property key="Event" value = "maximized"/>
</Child>

<Child type="Button" skin="ButtonMinusPlus" offset = "5 7 17 15" align = "Right Top" name = "Button">
<Property key="Event" value = "minimized"/>
</Child>

<BasisSkin type="SubSkin" offset = "21 0 47 28" align = "Right Top">
<State name="normal" offset = "377 2 47 28"/>
</BasisSkin>

<BasisSkin type="SubSkin" offset = "0 28 4 3" align = "Left Top">
<State name="normal" offset = "384 173 4 3"/>
</BasisSkin>
<BasisSkin type="SubSkin" offset = "4 28 58 3" align = "HStretch Top">
<State name="normal" offset = "390 173 3 3"/>
</BasisSkin>
<BasisSkin type="SubSkin" offset = "62 28 6 3" align = "Right Top">
<State name="normal" offset = "401 173 6 3"/>
</BasisSkin>

<BasisSkin type="SubSkin" offset = "0 31 4 12" align = "Left VStretch">
<State name="normal" offset = "384 176 4 12"/>
</BasisSkin>
<BasisSkin type="SubSkin" offset = "62 31 6 12" align = "Right VStretch">
<State name="normal" offset = "401 176 6 12"/>
</BasisSkin>

<BasisSkin type="SubSkin" offset = "0 43 4 6" align = "Left Bottom">
<State name="normal" offset = "384 188 4 6"/>
</BasisSkin>
<BasisSkin type="SubSkin" offset = "4 43 58 6" align = "HStretch Bottom">
<State name="normal" offset = "390 188 3 6"/>
</BasisSkin>
<BasisSkin type="SubSkin" offset = "62 43 6 6" align = "Right Bottom">
<State name="normal" offset = "401 188 6 6"/>
</BasisSkin>
</Resource>

As you can see, It has a problem I can not solve, I am getting crazy with this program.
please help me, thanks :D

kom

29-11-2010 05:05:02

I have made it, thank all of you. :D

nevarim

01-12-2010 14:40:41

post your solution that i have same problem :D