Shoutbox

Image Element Handle - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4)
+---- Forum: Scripting (/forumdisplay.php?fid=39)
+----- Thread: Image Element Handle (/showthread.php?tid=67999)

Image Element Handle by Felu on 11-03-2006 at 05:59 PM

Is it possible to get an Image Element's handle or hide it in any way?

I'm using the Plus! png's and not any external image

Thanks in advance

Edit : I know the ShowWindow method but it requires the handle.


RE: Image Element Handle by matty on 11-03-2006 at 06:10 PM

quote:
Originally posted by -!Felu!-
Is it possible to get an Image Element's handle or hide it in any way?

Thanks in advance

Edit : I know the ShowWindow method but it requires the handle.
No because the GetControlHandle only works for Controls not for Elements. To hide the picture you can simply set the image to nothing that would be your best bet.
RE: Image Element Handle by Felu on 11-03-2006 at 06:14 PM

quote:
Originally posted by Matty
quote:
Originally posted by -!Felu!-
Is it possible to get an Image Element's handle or hide it in any way?

Thanks in advance

Edit : I know the ShowWindow method but it requires the handle.
No because the GetControlHandle only works for Controls not for Elements. To hide the picture you can simply set the image to nothing that would be your best bet.
I forgot to tell but i'm using the plus! png's and not any external image so how would i set it to nothing in that case?
RE: Image Element Handle by matty on 11-03-2006 at 06:31 PM

This should work:

code:
pPlusWnd.ImageElmt_SetImageFile('imgImage', '');

RE: Image Element Handle by Felu on 11-04-2006 at 04:31 AM

quote:
Originally posted by Matty
This should work:
code:
pPlusWnd.ImageElmt_SetImageFile('imgImage', '');

Thanks it works [Image: xso_cheesy.gif] 
Another question. Is there a way to set the plus! png back other than reloading the window?
code:
pPlusWnd.ImageElmt_SetImageFile('imgImage', 'icon-floppy');
doesn't do the trick [Image: msn_sad.gif].