Modify

Opened 16 years ago

Closed 16 years ago

#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@…> 16 years ago.

Download all attachments as: .zip

Change History (6)

by Emiel Wieldraaijer <emielwieldraaijer@…>, 16 years ago

Attachment: globe.ico added

comment:1 by Zedna, 16 years ago

Here is link for original topic about this issue on the forum:
http://www.autoitscript.com/forum/index.php?showtopic=103522&view=findpost&p=741423

comment:2 by Valik, 16 years ago

Severity: NoneBlocking

comment:3 by Jon, 16 years ago

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, 16 years ago

Version: 3.3.0.0

Automatic ticket cleanup.

comment:5 by Jon, 16 years ago

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.