Garrett19212 Posted July 15, 2005 Share Posted July 15, 2005 $scanbutton = GUICtrlCreateButton ("Start Scan", 0, 0, 40,40,$BS_ICON) GUICtrlSetImage (-1, "data/images/scan.jpg") The image isn't showing up. Link to comment Share on other sites More sharing options...
Valuater Posted July 15, 2005 Share Posted July 15, 2005 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) Link to comment Share on other sites More sharing options...
GaryFrost Posted July 15, 2005 Share Posted July 15, 2005 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. Link to comment Share on other sites More sharing options...
Garrett19212 Posted July 15, 2005 Author Share Posted July 15, 2005 $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. Link to comment Share on other sites More sharing options...
Garrett19212 Posted July 15, 2005 Author Share Posted July 15, 2005 Ok works thanks. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now