Shoutbox

Scripts: LstView Setting Icon Problem - 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: WLM Plus! Bug Reports (/forumdisplay.php?fid=7)
+----- Thread: Scripts: LstView Setting Icon Problem (/showthread.php?tid=77237)

Scripts: LstView Setting Icon Problem by markee on 09-04-2007 at 01:07 PM

So what is the reasoning behind this one?

I firstly have a LstView control with all of the images in the LargeIcons and they are set right, but the images aren't there at the time of creating the window, they are being downloaded.  Why does plus make a cache of the images (or at least look for them) when the control is created rather than get it when it is called for? I know that this causes a slight bit more HDD and CPU usage, but it saves RAM from a very RAM hungry resource and also makes it more dynamic which is something that is always appreciated.

If there is some reasonable explanation behind this then let me know and I'll be happy (something like an API limitation possibly?).


RE: Scripts: LstView Setting Icon Problem by Patchou on 09-04-2007 at 05:23 PM

This is currently not possible with the scripting api of the software. This helps keeps things simple. That being said, if you want to delay load yoru icons, yo ucan send the insertitem message yourself and catch the notification when the control sends it to the window.