Modify

#2815 closed Bug (Wont Fix)

GUICtrlSetImage resets the icon size

Reported by: Tweaky Owned by:
Milestone: Component: AutoIt
Version: 3.3.12.0 Severity: None
Keywords: Cc:

Description

GUICtrlSetImage resets the icon size.

I think GUICtrlSetImage should be the size actually kept as it was set by GUICtrlCreateIcon

#Region    ;************ Includes ************
#include <GUIConstantsEx.au3>
#EndRegion    ;************ Includes ************

GUICreate("My GUI group", 300, 300)

Global $hIcon1 = GUICtrlCreateIcon("shell32.dll", -5, 20, 20, 240, 240)


GUISetState(@SW_SHOW) ; will display an empty dialog box

Sleep(2000)
GUICtrlSetImage($hIcon1, "shell32.dll", -6)

; Loop until the user exits.
While 1
	Switch GUIGetMsg()
		Case $GUI_EVENT_CLOSE
			ExitLoop
	EndSwitch
WEnd

In 3.3.8.1 that works well.
In 3.3.10.2 and later it does not work

Attachments (0)

Change History (2)

comment:1 by Jpm, on Jul 28, 2014 at 12:56:14 PM

In fact GUICtrlSetImage is supposed to use the icontype parameter
so 16x16 or 32x32 for normal.
What can be wrong is the GUICreateIcon which does not follow the selection of iconsize.

You can argue that greater iconsize have appeared which cannot be selected but that a very old code that have not be adaptated.

comment:2 by Jpm, on Jul 25, 2020 at 9:21:42 AM

Resolution: Wont Fix
Status: newclosed

Modify Ticket

Action
as closed The ticket will remain with no owner.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.