Jump to content
Sign in to follow this  
BlazerV60

Adding a picture to my GUI

Recommended Posts

BlazerV60

#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
furrycow

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
BlazerV60

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

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.