Scaleability with Image-Class

Discuss GUI programming with the MUI Royale plugin here
Post Reply
GMKai
Posts: 140
Joined: Mon Feb 15, 2010 10:58 am

Scaleability with Image-Class

Post 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>
GMKai
Posts: 140
Joined: Mon Feb 15, 2010 10:58 am

Re: Scaleability with Image-Class

Post 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?
User avatar
airsoftsoftwair
Posts: 5433
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: Scaleability with Image-Class

Post 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.
GMKai
Posts: 140
Joined: Mon Feb 15, 2010 10:58 am

Re: Scaleability with Image-Class

Post 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 :)
Post Reply