andygo 1 Posted January 18, 2011 (edited) Hello, maybe this is a bug or i should take a creative-break for a while... this is the situation: with $b1 = GuiCtrlCreateButton("Test", 20, 20, 100, 20) GuiCtrlSetbkColor($b1, 0x12e3db) i create a blue-colored button. works fine. now, with a function, i set the button back to the basic-style: GUICtrlSetStyle($b1, $GUI_SS_DEFAULT_BUTTON) works also fine. if i now try to set the text-color, text changes to red. but the backgroundcolor would also be changed to the first (blue) value. GuiCtrlSetColor($b1, 0xff0000) those two actions should be independent to each other, shouldnt they? it drives me realy crazy.... please help.... Edited January 18, 2011 by andygo Share this post Link to post Share on other sites
wraithdu 82 Posted January 18, 2011 Setting the style does not change the underlying background color, it just overrides it because the bk color cannot be shown with the default style. Once you try to set the text color, the button style is changed to the custom style again where you have the old bk color already set. You'll notice if you just set the text color on the button (and not the bk color) that the bk color and style change anyway. Share this post Link to post Share on other sites
andygo 1 Posted January 18, 2011 wraithdu, thanks very much. your explanation is plausible to me, i now unterstand the situation. Share this post Link to post Share on other sites