you can't. What you need to do is make a seperate image that looks good
at each resolution and then use vgui_LoadTGA() (I think..., one of the
load functions for images) to get it to load the image that is
appropriate to the users resolution.

jc wrote:
This is a multi-part message in MIME format.
--
[ Picked text/plain from multipart/alternative ]
how can i stretch a CImageLabel so that the tga fills the whole area... like... say

m_ClassImage = new CImageLabel("someimage", XRES(10), YRES(0), XRES(40), YRES(40));

if im right that makes an image label 40x40.. but the image doesnt stretch... so only looks right at oen resolution...

i tried m_ClassImage->m_pTGA->setSize but that is protected :S

its giving me a headache - how do i make it so that my vgui image is the size i pass to the constructor or the size i pass in a setSize ?

jc
--

_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders

_______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders



Reply via email to