Modify

Opened 17 years ago

Closed 17 years ago

#908 closed Bug (No Bug)

GUICtrlSetImage needs wrong icon index to show needed icon

Reported by: Pumbaa Owned by:
Milestone: Component: AutoIt
Version: 3.3.0.0 Severity: None
Keywords: GUICtrlSetImage wrong icon index Cc:

Description

GUICtrlSetImage needs wrong icon index to show needed icon.
In 3.2.X.X (don't remember exact version) I used such code

$About = GUICtrlCreateButton ("", 184, 5, 21, 21, $BS_ICON)
GUICtrlSetImage (-1, "shell32.dll", 172, 0)

But after installing 3.3.0.0 I've got wrong icon & found that now icon index became +110 - so:

#include <ButtonConstants.au3>

$About = GUICtrlCreateButton ("", 184, 5, 21, 21, $BS_ICON)
GUICtrlSetImage (-1, "shell32.dll", 282, 0)

After small exploration I've found that about first 50 icons are ok, but further indexes indent with growing delta (delta is not constantly 110).

Attachments (0)

Change History (1)

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

Resolution: No Bug
Status: newclosed

Just reread the doc as negative index have been introduce to differentiate name and index reference

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.