Sign in to follow this  
Followers 0
BlazerV60

Adding a picture to my GUI

6 posts in this topic

#include <File.au3>

Dim $theme

_FileReadToArray("C:\TestPicture.bmp", $theme)

GuiCtrlCreatePic($theme, 200, 200, 50, 10)

GuiCtrlSetState( -1, $GUI_DISABLE)

I put that in my GUI but my TestPicture.bmp won't show up on it, and yes the TestPicture.bmp is inside the C drive.

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

Havent tried it out at all, but if youre putting it into an array, then surely...

GuiCtrlCreatePic($theme, 200, 200, 50, 10)
;should be
GuiCtrlCreatePic($theme[1], 200, 200, 50, 10)

Or whatever place it is in the array?

If not, ill actually wack it in Scite, and give it a gander!

Cheers

Edited by furrycow

Instant Lockerz Invite - www.instantlockerzinvite.co.uk

Share this post


Link to post
Share on other sites

Just do:

GuiCtrlCreatePic("C:\TestPicture.bmp", 200, 200, 50, 10)

Yay it works thanks! Hey If I send it to someone, then how can they see the picture because they don't have TestPicture.bmp in their C drive D=

Share this post


Link to post
Share on other sites

Use FileInstall()

8)


NEWHeader1.png

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