Opened on Oct 7, 2009 at 7:04:55 PM
Closed on Oct 7, 2009 at 8:56:19 PM
Last modified on Oct 8, 2009 at 7:13:27 PM
#1208 closed Bug (No Bug)
No colored flat Button possible — at Version 1
| Reported by: | funkey | Owned by: | |
|---|---|---|---|
| Milestone: | Component: | AutoIt | |
| Version: | 3.3.0.0 | Severity: | None |
| Keywords: | Cc: |
Description (last modified by )
Either a flat button or a colored button is possible, not both.
#include <ButtonConstants.au3>
Opt("GUIOnEventMode", 1)
GUICreate("Button-Bug", 200, 110)
GUISetOnEvent(-3, "_Exit")
GUICtrlCreateButton("Flat", 20, 20, 70, 20, $BS_FLAT)
GUICtrlSetBkColor(-1, 0xFF0000)
GUICtrlSetStyle(-1, $BS_FLAT)
GUICtrlSetOnEvent(-1, "_ChangeBkCol")
GUICtrlCreateButton("Standard", 110, 20, 70, 20)
GUICtrlSetOnEvent(-1, "_ChangeBkCol")
GUICtrlCreateButton("Flat", 20, 70, 70, 20, $BS_FLAT)
GUICtrlSetOnEvent(-1, "_MakeDefBkCol")
GUICtrlCreateButton("Standard", 110, 70, 70, 20)
GUICtrlSetOnEvent(-1, "_MakeDefBkCol")
GUISetState()
While 1
Sleep(100000)
WEnd
Func _ChangeBkCol()
GUICtrlSetBkColor(@GUI_CtrlId, 0x00FF00)
EndFunc
Func _MakeDefBkCol()
GUICtrlSetBkColor(@GUI_CtrlId, Default)
EndFunc
Func _Exit()
Exit
EndFunc
Change History (1)
comment:1 by , on Oct 7, 2009 at 8:56:19 PM
| Description: | modified (diff) |
|---|---|
| Resolution: | → No Bug |
| Status: | new → closed |
Note:
See TracTickets
for help on using tickets.

No color means invisible. So with that little obvious nugget of information in mind, think about what you are trying to do and then try thinking about a rather obvious solution.