Modify

Opened 17 years ago

Closed 17 years ago

#1052 closed Bug (No Bug)

GUICtrlCreateIcon() returns 0 if the file does not exist

Reported by: Yashied Owned by:
Milestone: Component: AutoIt
Version: 3.3.0.0 Severity: None
Keywords: Cc:

Description

GUICtrlCreateIcon() returns 0 if the file does not exist, but returns ID, if instead of the file name will be transferred to an empty string ("").

GUICreate('')
$Icon = GUICtrlCreateIcon('Nobody', 0, 0, 0)
ConsoleWrite($Icon & @CR)
$Icon = GUICtrlCreateIcon('', 0, 0, 0)
ConsoleWrite($Icon & @CR)
GUIDelete()

Attachments (0)

Change History (2)

comment:1 by J-Paul Mesnage, 17 years ago

It is the desire behavior to allow GUICtrlSetImage to update empty ("") created by GUICtrlCreateIcon("", ...)

comment:2 by J-Paul Mesnage, 17 years ago

Resolution: No Bug
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.