Jump to content
Sign in to follow this  

Set BKColor on iconized button

Recommended Posts


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  


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.