#1439 closed Bug (Wont Fix)
Icons included in script use wrong size
| Reported by: | P5ych0Gigabyte | Owned by: | Jon |
|---|---|---|---|
| Milestone: | Component: | AutoIt | |
| Version: | 3.3.4.0 | Severity: | None |
| Keywords: | Cc: |
Description (last modified by )
I have a script which uses a button with a 48x48 icon. When using an external ico file it works fine. However when using AutoIt3Wrapper to add an icon to the script it shows as 32x32. It is not a bug in AutoIt3Wrapper as opening the exe is reshacker shows the icon is indeed 48x48.
Attachments (1)
Change History (7)
by , on Jan 29, 2010 at 6:53:18 PM
| Attachment: | IconBug.zip added |
|---|
comment:2 by , on Jan 30, 2010 at 8:04:15 AM
| Description: | modified (diff) |
|---|
comment:3 by , on Feb 15, 2010 at 3:52:43 PM
The same bug is with GUICtrlCreateIcon, because if I set width and height to 48 px like this:
GUICtrlCreateIcon(@AutoItExe,0,0,0,48,48)
the image is pixeled from the 32px version. I have to use this:
GUICtrlCreateIcon(@AutoItExe,99,0,0,48,48)
assuming that the icon is named 99 in the resource hacker to have the right size.
comment:4 by , on Apr 23, 2010 at 9:29:04 AM
in fact icons can only be 16x16 or 32x32 as the Windows extraction API we are using only return those formats.
We don't want to reimplement the Windows API, so I will document this restiction.
If we use the same algorithm as for GUICtrlCreateIcon the Icon is not center in the button area. At least that what we found when we implement GuiCtrlSetImage for button
comment:5 by , on Jun 27, 2010 at 8:24:36 AM
| Owner: | set to |
|---|---|
| Status: | new → assigned |
comment:6 by , on May 22, 2011 at 9:05:46 PM
| Resolution: | → Wont Fix |
|---|---|
| Status: | assigned → closed |

Please remove the link as I have added the file as an attachement.