Modify

#1270 closed Feature Request (Completed)

GUISetIcon (@ScriptName) sets the 48x48 icon to the GUI

Reported by: Emiel Wieldraaijer <emielwieldraaijer@…> Owned by: Jon
Milestone: 3.3.1.6 Component: AutoIt
Version: Severity: None
Keywords: Cc:

Description

Look at the icons used for displaying the program when pressing ALT-TAB. The globe is much better when no GuiSetIcon(@ScriptName) is used.I know it isn't necessary to use it.. but i still believe it's a bug.

#Region 
#AutoIt3Wrapper_icon=globe.ico
#AutoIt3Wrapper_outfile=IconBug.exe
#AutoIt3Wrapper_UseUpx=n
#EndRegion 
#include <GUIConstantsEx.au3>

GUICreate("Icon Bug", 315, 260)
; GuiSetIcon (@Scriptname) produces the Icon Bug with ALT-TAB / System Tray
; Wrong icon is displayed on Vista/Windows 7 i Believe 48x48 instead of a better one
; Remove the GuiSetIcon and the icon is displayed correct
GuiSetIcon(@ScriptName)
GuiCtrlCreateLabel("Hello World", 10, 10, 200, 20)
GUISetState()

While 1
    $msg = GUIGetMsg()
    If $msg = $GUI_EVENT_CLOSE Then exit
Wend

Attachments (1)

globe.ico (97.3 KB ) - added by Emiel Wieldraaijer <emielwieldraaijer@…> on Nov 3, 2009 at 10:22:41 PM.

Download all attachments as: .zip

Change History (6)

by Emiel Wieldraaijer <emielwieldraaijer@…>, on Nov 3, 2009 at 10:22:41 PM

Attachment: globe.ico added

comment:2 by Valik, on Nov 12, 2009 at 10:53:00 PM

Severity: NoneBlocking

comment:3 by Jon, on Nov 17, 2009 at 7:55:51 PM

Severity: BlockingNone
Type: BugFeature Request

Changing to a feature request. We need a complete overhaul of the icon loading code and it has to try different resolutions and depths depending on the OS. We also only support loading the "small" icon atm. So we would need to change that to both small and large. So not a simple change.

comment:4 by TicketCleanup, on Nov 17, 2009 at 8:00:01 PM

Version: 3.3.0.0

Automatic ticket cleanup.

comment:5 by Jon, on Nov 17, 2009 at 10:05:42 PM

Milestone: 3.3.1.6
Owner: set to Jon
Resolution: Completed
Status: newclosed

Added by revision [5393] in version: 3.3.1.6

Modify Ticket

Action
as closed The owner will remain Jon.

Add Comment


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