Sign in to follow this  
Followers 0

Set BKColor on iconized button

2 posts in this topic

#1 ·  Posted (edited)

I have a GUI with some changed background color and wanted to adapt the buttons (which are icons only) to have the same background color.

But I noticed, that setting BKColor AND image are not giving the desired result, but removing the icon from the button?

Any w/a, I did not find something in the search?



#Region ### START Koda GUI section ### Form=

$Form2 = GUICreate("Form1", 413, 298, 434, 283)

$Button1 = GUICtrlCreateButton("(Not allowed)", 190, 135, 36, 36, $BS_ICON)

GUICtrlSetBkColor(-1, 0x00FF00)

GUICtrlSetImage(-1, "shell32.dll", 22)


#EndRegion ### END Koda GUI section ###

While 1

$nMsg = GUIGetMsg()

Switch $nMsg





Edited by ds34

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