Modify

Opened 10 years ago

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

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

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

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.