Modify

Opened 15 years ago

Closed 15 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 Changed 15 years ago by Jpm

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

comment:2 Changed 15 years ago by Jpm

  • Resolution set to No Bug
  • Status changed from new to closed

Guidelines for posting comments:

  • You cannot re-open a ticket but you may still leave a comment if you have additional information to add.
  • In-depth discussions should take place on the forum.

For more information see the full version of the ticket guidelines here.

Add Comment

Modify Ticket

Action
as closed The ticket will remain with no owner.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.