Page 1 of 1

Scaleability with Image-Class

Posted: Mon Oct 30, 2017 2:26 pm
by GMKai
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>

Re: Scaleability with Image-Class

Posted: Mon Oct 30, 2017 3:26 pm
by GMKai
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?

Re: Scaleability with Image-Class

Posted: Tue Oct 31, 2017 5:58 pm
by airsoftsoftwair
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.

Re: Scaleability with Image-Class

Posted: Wed Nov 01, 2017 12:09 pm
by GMKai
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 :)