Jump to content

Adding a picture to my GUI


 Share

Recommended Posts

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

Link to comment
Share on other sites

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
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...