Jump to content

Recommended Posts

Posted

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
Next
It wont set the image for the buttons. Why?

(And yes I have checked the image is there :whistle: )

Thank you :P

Posted

Yeah... Didn't work too :whistle:

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

Posted (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 by Mr. Zero
Posted

$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

Posted (edited)

You cant convert a jpg to bmp by just renaming.

Edit - Too slow again.

Edited 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

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
×
×
  • Create New...