Jump to content

$BS_ICON not working?


PantZ4
 Share

Recommended Posts

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

$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

$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
Nope. It just show a gray button.

Here is my image for the button

(It is just clean white, and with the bmp extions)

Edited by Mr. Zero
Link to comment
Share on other sites

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

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