I have a code more or less written in this way:
[...]
<hbox id="boxMessage">
<stack>
<image id="messages" src="anImage.png" value="0"/>
<label id="nMessages" value="0" />
</stack>
</hbox>
[...]
The image is 16x16 and my problem is that where nMessages become
larger that the image (eg:99), the image will resized.
Is it possible to fix the size exactly at 16x16 pixels avoiding any
resize?
I tried using "maxWidth" but it didn't work.
Any suggestions?
Many Thanks
c.m.
> Hiya,
>
> I have a code more or less written in this way:
>
> [...]
>
> <hbox id="boxMessage">
> <stack>
> <image id="messages" src="anImage.png" value="0"/>
> <label id="nMessages" value="0" />
> </stack>
> </hbox>
>
> [...]
>
> The image is 16x16 and my problem is that where nMessages become
> larger that the image (eg:99), the image will resized.
>
> Is it possible to fix the size exactly at 16x16 pixels avoiding any
> resize?
Simply position the image and it will no longer be stretched to the size
of the stack. <image left="0" top="0"> would seem to suffice.
--
Warning: May contain traces of nuts.
It works, buf what if I want to align the two objects on their middle?
Thx
c.m.
In that case I would enclose the image in a <box align="center"
pack="center">.
Uhm, it doesn't work... anyway it's OK!
Thanks