Sign in to follow this  
Followers 0
Valuater

Why doesnt this work anymore

4 posts in this topic

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

Share this post


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.

 

Share this post


Link to post
Share on other sites

if you check out my *Xpedite Pro* script below it has this use throughout...

and there is no error... and it DID WORK BEFORE??

I guess i have to go through and change all of the icons now

thanks

8)


NEWHeader1.png

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

I have such a problem to sometimes...

But then I chance some thing more, it will show the icon instantly.

I'm using tabs...

It hapens for example when i'm using GUICtrlSetFont in the previous page...

Edited by Ghastly_MIB

Share this post


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
Sign in to follow this  
Followers 0