Page 2 of 2

Re: Re:

Posted: Wed Apr 28, 2010 2:20 pm
by Mr Coder
Thanks srod, works without the Purifier spitting the dummy now. ;)

Re: Re:

Posted: Wed Apr 28, 2010 4:52 pm
by srod
Mr Coder wrote:Thanks srod, works without the Purifier spitting the dummy now. ;)
Glad it worked out.

It was a bit 'slack' of me not to fix the bug earlier since I'd known about it for several months now.

Re: Saving icons in .ico files (updated to include cursors)

Posted: Mon Mar 26, 2012 2:54 pm
by srod
Hi,

assuming you mean multiple icons as opposed to icons saved in the latest format, then my code will not do that as it stands. However, I seem to recall that Netmaestro posted some code somewhere which will do this. I cannot remember if he based his code on my routine or he started from scratch?

Worth a search through these forums.

Re: Saving icons in .ico files (updated to include cursors)

Posted: Mon Mar 26, 2012 6:16 pm
by c4s
As far as I understand it's pretty easy:
- In line 83 you already commented "WriteWord(file,1) ;***CHANGE IF EXTENDING CODE TO MORE THAN ONE ICON***", so this should be changed to the number of to be included icons
- Then simply write the following ICONDIRENTRY, BITMAPINFOHEADER and the data for each icon.

... I didn't test it but it should work.

Re: Saving icons in .ico files (updated to include cursors)

Posted: Mon Mar 26, 2012 6:22 pm
by srod
Yes shouldn't be difficult to alter, but I am pretty sure that Netty has already done the job! :)

Re: Saving icons in .ico files (updated to include cursors)

Posted: Mon Apr 13, 2020 4:39 pm
by Thorsten1867
TODO (maybe!)
; -Extend the code to save multiple icons/cursors in the same .ico file.
??? :wink: