Valuater Posted October 10, 2005 Posted October 10, 2005 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)
GaryFrost Posted October 10, 2005 Posted October 10, 2005 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.
Valuater Posted October 10, 2005 Author Posted October 10, 2005 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)
Ghastly_MIB Posted October 10, 2005 Posted October 10, 2005 (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 October 10, 2005 by Ghastly_MIB
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now