Edie

[Solved] Doubt about GUICtrlCreatePic

1 post in this topic

#1 ·  Posted (edited)

If I use this command:

Global $idLogoConect  = GUICtrlCreatePic("vetor.gif", 60, 5, 291, 96)

I have to have the pic on the same folder of the .exe. How can I use the image when I compile the .exe? Do I need to always have the image on the same folder of the .exe? Is there a way to compile the image together so I don't need the .gif file to show it?

@Solved   

Actually, it's simple, the command I needed was: FileInstall

FileInstall("vetor.gif", @TempDir & "\vetor.gif", 1)
Global $idLogoConect  = GUICtrlCreatePic(@TempDir & "\vetor.gif", 60, 5, 291, 96)

 

Edited by Edie

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