Jump to content

Why doesnt this work anymore


Recommended Posts

i have used this many times... and now it does not work

$Icon_4A = GUICtrlCreateIcon("", 0, 360, 395, 30, 30)
GUICtrlSetImage(-1, "shell32.dll", 131)

example script

#include <GUIConstants.au3>

GUICreate("My GUI Button") ; will create a dialog box that when displayed is centered

Opt("GUICoordMode",2)
GUICtrlCreateButton ("OK",  10, 30, 50)
GUICtrlCreateButton ( "Cancel",  0, -1)

$Icon_4A = GUICtrlCreateIcon("", 0, 30, 95, 30, 30)
GUICtrlSetImage(-1, "shell32.dll", 131)

GUISetState ()    ; will display an  dialog box with 2 button

; Run the GUI until the dialog is closed
While 1
    $msg = GUIGetMsg()
    
    If $msg = $GUI_EVENT_CLOSE Then ExitLoop
Wend

thanks

8)

NEWHeader1.png

Link to post
Share on other sites

I've never tried it that, but it doesn't work that way for me, now this does.

$Icon_4A = GUICtrlCreateIcon("shell32.dll", 1, 30, 95, 30, 30)
GUICtrlSetImage($Icon_4A, "shell32.dll", 131)

SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

Link to post
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
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...