Sign in to follow this  
Followers 0
ds34

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?

Thanks,

Daniel

CODE
#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)

GUISetState(@SW_SHOW)

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

While 1

$nMsg = GUIGetMsg()

Switch $nMsg

Case $GUI_EVENT_CLOSE

Exit

EndSwitch

WEnd

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