Discuss GUI programming with the MUI Royale plugin here
GMKai
Posts: 140 Joined: Mon Feb 15, 2010 10:58 am
Post
by GMKai » Mon Oct 30, 2017 2:26 pm
Hello,
my GUI gets blocked regarding resizeability when including these 2 lines:
Code: Select all
<image id="immatchreporthome" freeVert="True" freeHoriz="True" source="BRUSH: 50"/>
<image id="immatchreportaway" freeVert="True" freeHoriz="True" source="BRUSH: 50"/>
These images are meant to replace simple "text"-elements.
Do I have to mix up with the "freeV/H"-tags to get my colgroup resizeable again?
Code: Select all
<colgroup columns="2" frame="group" background="groupback" cyclechain="1">
<text id="txmatchreporthome"/>
<text id="txmatchreportaway"/>
<text>Referee</text>
<text id="txmatchreportreferee"/>
<text>Weather</text>
<text id="txmatchreportweather"/>
<text id="txmatchreportstadium"/>
<text id="txmatchreportvisitor"/>
<!--<image id="immatchreporthome" freeVert="True" freeHoriz="True" source="BRUSH: 50"/>
<image id="immatchreportaway" freeVert="True" freeHoriz="True" source="BRUSH: 50"/>
-->
</colgroup>
GMKai
Posts: 140 Joined: Mon Feb 15, 2010 10:58 am
Post
by GMKai » Mon Oct 30, 2017 3:26 pm
Hm, when adding these images to another project that one does not get broken.
Leaving these 2 lines from the current project breaks it - any idea what to look at?
airsoftsoftwair
Posts: 5433 Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:
Post
by airsoftsoftwair » Tue Oct 31, 2017 5:58 pm
AFAIR Image.FreeVert and Image.FreeHoriz are only for MUI's special vector graphics format but I'm not sure. Ask over on
http://muidev.de for more clarification. Image gadgets are non-resizable so you need to pad them with <rectangle>, e.g. like this:
Code: Select all
<colgroup columns="2" frame="group" background="groupback" cyclechain="1">
<text id="txmatchreporthome"/>
<text id="txmatchreportaway"/>
<text>Referee</text>
<text id="txmatchreportreferee"/>
<text>Weather</text>
<text id="txmatchreportweather"/>
<text id="txmatchreportstadium"/>
<text id="txmatchreportvisitor"/>
<hgroup>
<image id="immatchreporthome" source="BRUSH: 50"/>
<rectangle/>
</hgroup>
<hgroup>
<image id="immatchreportaway" source="BRUSH: 50"/>
<rectangle/>
</hgroup>
</colgroup>
This should solve your problem.
GMKai
Posts: 140 Joined: Mon Feb 15, 2010 10:58 am
Post
by GMKai » Wed Nov 01, 2017 12:09 pm
Thank you, nesting the <image> with an <hgroup> did the trick,
and with custom brushes I see no difference when setting der Vert-attributes...
...so: case closed