Jump to content

need help in GUICtrlSetImage


Recommended Posts

hi , i have a problem with GUICtrlSetImage , when trying ti set the value in iconname to 127 , it is not loaded

here's the code

GUICreate("listview items", 800, 600, 100, 100, -1)
$button = GUICtrlCreateButton("komsalo", 399, 528, 209, 31,$BS_ICON)
GUICtrlSetImage($button,"C:\WINDOWS\system32\shell32.dll",127)
Do
    $msg = GUIGetMsg()
Until $msg = $GUI_EVENT_CLOSE

so does GUICtrlSetImage have an icon index limit ?

please help

[font="Palatino Linotype"][size="3"]AutoIt Script Examples :[/size][/font][font="Palatino Linotype"][size="3"]_CaptureBehindWindowGlass CMD for Windows Vista/Seven[/size][/font][left][/left][font="Palatino Linotype"][size="3"]Non AutoIt Script programs : Border Skin - Aero Glass On XP[/size][/font]
Link to comment
Share on other sites

Hmm... I get the same result (no icon and just text), though ResHacker shows a nice printer icon as number 127 (windows XP's shell32.dll) or a flatscreen monitor (Vista's shell32.dll)...

Note: I'm running on Vista Business 32 bits NL - didn't test it in any other Windows version.

I wonder if anyone else knows this.

Roses are FF0000, violets are 0000FF... All my base are belong to you.

Link to comment
Share on other sites

Hmm... I get the same result (no icon and just text), though ResHacker shows a nice printer icon as number 127 (windows XP's shell32.dll) or a flatscreen monitor (Vista's shell32.dll)...

Note: I'm running on Vista Business 32 bits NL - didn't test it in any other Windows version.

I wonder if anyone else knows this.

see , that's what i am talking about , i don't know if autoit can't determine icons after a specific icon index ?

[font="Palatino Linotype"][size="3"]AutoIt Script Examples :[/size][/font][font="Palatino Linotype"][size="3"]_CaptureBehindWindowGlass CMD for Windows Vista/Seven[/size][/font][left][/left][font="Palatino Linotype"][size="3"]Non AutoIt Script programs : Border Skin - Aero Glass On XP[/size][/font]
Link to comment
Share on other sites

see , that's what i am talking about , i don't know if autoit can't determine icons after a specific icon index ?

It sure can... Use index 133 or higher and it gives you icons again :)

Roses are FF0000, violets are 0000FF... All my base are belong to you.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...