Jump to content
Sign in to follow this  
Garrett19212

GUICTRLSetImage

Recommended Posts

Garrett19212

$scanbutton = GUICtrlCreateButton ("Start Scan", 0, 0, 40,40,$BS_ICON)

GUICtrlSetImage (-1, "data/images/scan.jpg")

The image isn't showing up.

Share this post


Link to post
Share on other sites
Valuater

the location of the pic is like this

"C:\data\images\scan.jpg"

thus

$scanbutton = GUICtrlCreateButton ("Start Scan", 0, 0, 40,40,$BS_ICON)

GUICtrlSetImage (-1,"C:\data\images\scan.jpg")

(not sure of your actual location)

8)


NEWHeader1.png

Share this post


Link to post
Share on other sites
GaryFrost

shouldn't that be a an icon file?

or if $BS_BITMAP, then an bitmap file?


SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

Share this post


Link to post
Share on other sites
Garrett19212

$scanbutton = GUICtrlCreateButton ("Start Scan", 0, 0, 40,40,$BS_ICON)

GUICtrlSetImage (-1, @SCRIPTDIR & "/data/images/scan.jpg")

Didn't work, ill try what qafrost said.

Share this post


Link to post
Share on other sites
Garrett19212

Ok works thanks.

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  

×