dandymcgee Posted December 9, 2006 Share Posted December 9, 2006 (edited) Hey guys, I'm trying to get this script to set an image on a GUI, but it just won't seem to work. I don't understand why...!? #include <GUIConstants.au3> GUICreate("pic test", 358, 302, 188, 111) GUICtrlCreatePic(@ScriptDir & "Tic1.png", 160, 64, 43, 41) GUISetState(@SW_SHOW) While 1 $msg = GuiGetMsg() Select Case $msg = $GUI_EVENT_CLOSE Exit EndSelect WEnd The picture doesn't matter, I just can't seem to get any picture to work. Thanks in advance. EDIT: Seems as if .png files aren't supported, a jpg of the same image worked perfectly. Ah well. Edited December 9, 2006 by dandymcgee - Dan [Website] Link to comment Share on other sites More sharing options...
Valuater Posted December 9, 2006 Share Posted December 9, 2006 (edited) @ScriptDir & "Tic1.png" is... @ScriptDir & "\Tic1.png" you left out the slash "\" 8) Edited December 9, 2006 by Valuater Link to comment Share on other sites More sharing options...
xcal Posted December 9, 2006 Share Posted December 9, 2006 Pretty sure GUICtrlCreatePic() won't display a png, anyway. How To Ask Questions The Smart Way Link to comment Share on other sites More sharing options...
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