O.P. Help required
I need help on a few points. I guess I could really do with a mentor for this.
1) I am displaying custom emoticons in a PlusWnd. When displaying those based upon an animated gif (either using the original .dt2 file, or renaming the file to end .gif) only the first frame of the image is shown. Is it possible to have the animated image played. My problem is that there are a number of animated gif based emotes, where the first frame is just a totally transparent frame with nothing in it. Thus nothing is shown when this emote is displayed in a PlusWnd.
2) I do not know how many images need to be displayed before run time. Is there a way to add an image (rather than modify one) to a PlusWnd. As the images are being displayed in a child window, one way would be to write the XML out for the child window using Scripting.FileSystemObject, before the window is opened.
3) I'm not sure that this will be a problem for me, but I have noticed that if a new image is loaded using ImageElmt_SetImageFile, the width and height from the previous image are retained, acting as cropping bounderies. Is it possible to have the width and height of the new image honoured.
4) I notice that using GetElementPos on the image gives X and Y coordinates that are offset by 3, and 50 from the values specified in the XML. Why is this?
5) The killer question: I may have more images to display than will fit in the child window. How do I add scroll bars to it?
I really would appreciate help with this. The final script will be a real boon for anyone who has a large number of emotes, uses compound emotes (where more than one are strung together), etc.
|