Jump to content
Sign in to follow this  
bobbintb

help with icon button

Recommended Posts

bobbintb

im having trouble getting an icon to show as a button

i can get the first icon in the dll to show, but i needed the fifth one and it is just blank.

this works:

$Button2 = GUICtrlCreateButton("", 48, 352, 95, 95, $BS_ICON)
GUICtrlSetImage(-1, "C:\Windows\System32\devmgr.dll", 1)

but this doesnt

$Button2 = GUICtrlCreateButton("", 48, 352, 95, 95, $BS_ICON)
GUICtrlSetImage(-1, "C:\Windows\System32\devmgr.dll", 5)

Share this post


Link to post
Share on other sites
picea892

It could be a -5. Try it this way

$Button2 = GUICtrlCreateButton("", 48, 352, 95, 95, $BS_ICON)

GUICtrlSetImage(-1, "C:\Windows\System32\devmgr.dll", -5)

Share this post


Link to post
Share on other sites
bobbintb

It could be a -5. Try it this way

$Button2 = GUICtrlCreateButton("", 48, 352, 95, 95, $BS_ICON)

GUICtrlSetImage(-1, "C:\Windows\System32\devmgr.dll", -5)

oh hey, that worked. but why would it be a negative number?

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.