Sign in to follow this  
Followers 0
bobbintb

help with icon button

3 posts in this topic

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



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

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