I wondered if you could help me with this.
I created a DLL with a script from funkey (http://www.autoitscript.com/forum/topic/140449-createresourcedll/) and have numerous icons in there. When I try to add these icons to buttons in my script, only the first icon I set is displayed.
Here is what I have:
Attached is a screenshot of what icons my dll contains.
Any ideas how I can resolve this?
I can point the image to the individual ico files and it will work fine, but I'd love to have it just work through this dll.
I created a DLL with a script from funkey (http://www.autoitscript.com/forum/topic/140449-createresourcedll/) and have numerous icons in there. When I try to add these icons to buttons in my script, only the first icon I set is displayed.
Here is what I have:
[ autoit ]
#include #include #include #include #Region ### START Koda GUI section ### Form= $formMain = GUICreate("Form1", 615, 438, 192, 124) $btnInstall = GUICtrlCreateButton("", 1, 1, 33, 33, $BS_ICON) GUICtrlSetImage(-1,@ScriptDir & "\ico.dll","INSTALL_ICONS.ICO") $btnUninstall = GUICtrlCreateButton("", 34, 1, 33, 33, $BS_ICON) GUICtrlSetImage(-1,@ScriptDir & "\ico.dll","UNINSTALL_ICONS.ICO") $btnRequest = GUICtrlCreateButton("", 67, 1, 33, 33, $BS_ICON) GUICtrlSetImage(-1,@ScriptDir & "\ico.dll","EMAIL_ICON.ICO") $btnPrinter = GUICtrlCreateButton("", 100, 1, 33, 33, $BS_ICON) GUICtrlSetImage(-1,@ScriptDir & "\ico.dll","PRINTER (2).ICO") GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit EndSwitch WEnd
Attached is a screenshot of what icons my dll contains.
Any ideas how I can resolve this?
I can point the image to the individual ico files and it will work fine, but I'd love to have it just work through this dll.