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 , 17 years ago
comment:2 by , 17 years ago
| Resolution: | → No Bug |
|---|---|
| Status: | new → closed |
Note:
See TracTickets
for help on using tickets.

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