Sign in to follow this  
Followers 0
PantZ4

$BS_ICON not working?

10 posts in this topic

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

Share this post


Link to post
Share on other sites



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

Share this post


Link to post
Share on other sites

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

Convert your image to a bmp and it will work.


Get Beta versions Here Get latest SciTE editor Here AutoIt 1-2-3 by Valuater - A great starting point.

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

Share this post


Link to post
Share on other sites

#5 ·  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

Share this post


Link to post
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



Get Beta versions Here Get latest SciTE editor Here AutoIt 1-2-3 by Valuater - A great starting point.

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

Share this post


Link to post
Share on other sites

#7 ·  Posted (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
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

Share this post


Link to post
Share on other sites

#9 ·  Posted (edited)

You cant convert a jpg to bmp by just renaming.

Edit - Too slow again.

Edited by BigDod


Get Beta versions Here Get latest SciTE editor Here AutoIt 1-2-3 by Valuater - A great starting point.

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

Share this post


Link to post
Share on other sites

Try this

Thank You. It works now :whistle:

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  
Followers 0