ds34 Posted December 22, 2008 Posted December 22, 2008 (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 December 22, 2008 by ds34
Zedna Posted December 22, 2008 Posted December 22, 2008 You probably should look at "ownerdraw" methods. There are examples on the forum. Resources UDF ResourcesEx UDF AutoIt Forum Search
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now