Just wanted to add that when I implemented the EXE icon extraction code, because of the nature of the way the icon/path is specified (its a property, not a method call), I had to choose between returning a small or large icon - and I decided to go with the large icon (32x32).

If the EXE has only small (16x16) icons, they will still return as 32x32 but then the developer can decide to shrink it back down to 16x16 using the Width/Height properties. I thought that this might make a better alternative then to have the 16x16 expanded to 32x32.

In the future, I will be implementing the LoadIcon() method call for all objects, and it will go something like this:

$Button.Icon = $Button.LoadIcon("path",index,size)

And this will bring the extraction of icons from DLLs,EXEs and ICOs under one roof, and allow the developer to specify the icons size and other things. As well, might make it so that if the developer specified -1 for the index, the method would return the total number of icons available in the resource. Not sure if this would be terribly usefull or not, but the method version extraction would give us this flexibility.

-Shawn

[ 03. November 2002, 23:06: Message edited by: Shawn ]