PantZ4 Posted October 24, 2006 Share Posted October 24, 2006 I need help to see why this part dosn't work $height = 25 $Width = 25 $b = 1 For $i = 1 to 9 Step 1 $button[$b] = GUICtrlCreateButton("",$height,$Width,60,62,$BS_ICON) $height = $height + 65 GUICtrlSetImage($button[$b],@workingdir&"\Blank.JPG") $b = $b + 1 NextIt wont set the image for the buttons. Why? (And yes I have checked the image is there ) Thank you Link to comment Share on other sites More sharing options...
GaryFrost Posted October 24, 2006 Share Posted October 24, 2006 have you tried $BS_BITMAP? 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...
PantZ4 Posted October 24, 2006 Author Share Posted October 24, 2006 Yeah... Didn't work too Link to comment Share on other sites More sharing options...
BigDod Posted October 24, 2006 Share Posted October 24, 2006 Yeah... Didn't work too Convert your image to a bmp and it will work. Time you enjoyed wasting is not wasted time ......T.S. Elliot Suspense is worse than disappointment................Robert Burns God help the man who won't help himself, because no-one else will...........My Grandmother Link to comment Share on other sites More sharing options...
PantZ4 Posted October 24, 2006 Author Share Posted October 24, 2006 (edited) But it looks more urgly... Lower resoultions. But why does the jpg file dont work? EDIT: OMG it will not work, even with bmp! Edited October 24, 2006 by Mr. Zero Link to comment Share on other sites More sharing options...
BigDod Posted October 24, 2006 Share Posted October 24, 2006 $height = 25 $Width = 25 $b = 1 For $i = 1 to 9 Step 1 $button[$b] = GUICtrlCreateButton("",$height,$Width,60,62,$BS_BITMAP) $height = $height + 65 GUICtrlSetImage($button[$b],@workingdir & "\Blank.bmp") $b = $b + 1 Next Time you enjoyed wasting is not wasted time ......T.S. Elliot Suspense is worse than disappointment................Robert Burns God help the man who won't help himself, because no-one else will...........My Grandmother Link to comment Share on other sites More sharing options...
PantZ4 Posted October 24, 2006 Author Share Posted October 24, 2006 (edited) $height = 25 $Width = 25 $b = 1 For $i = 1 to 9 Step 1 $button[$b] = GUICtrlCreateButton("",$height,$Width,60,62,$BS_BITMAP) $height = $height + 65 GUICtrlSetImage($button[$b],@workingdir & "\Blank.bmp") $b = $b + 1 NextNope. It just show a gray button. Here is my image for the button (It is just clean white, and with the bmp extions) Edited October 24, 2006 by Mr. Zero Link to comment Share on other sites More sharing options...
GaryFrost Posted October 24, 2006 Share Posted October 24, 2006 (edited) Try this Edit: removed bitmap. Edited October 24, 2006 by gafrost 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...
BigDod Posted October 24, 2006 Share Posted October 24, 2006 (edited) You cant convert a jpg to bmp by just renaming. Edit - Too slow again. Edited October 24, 2006 by BigDod Time you enjoyed wasting is not wasted time ......T.S. Elliot Suspense is worse than disappointment................Robert Burns God help the man who won't help himself, because no-one else will...........My Grandmother Link to comment Share on other sites More sharing options...
PantZ4 Posted October 24, 2006 Author Share Posted October 24, 2006 Try thisThank You. It works now 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