Guten Abend,
ich habe bei folgenden Code folgendes Problem:
[autoit]#include <GuiConstantsEx.au3>
[/autoit][autoit][/autoit][autoit][/autoit][autoit]$Gui = GUICreate("My GUI", 1000, 500)
$Button = GUICtrlCreateButton("test", 20, 20, 50)
$Graphic = GUICtrlCreateGraphic(20, 50, 500, 200)
GUICtrlSetBkColor($Graphic, 0xffffff)
GUICtrlSetColor($Graphic, 0x000000)
GUICtrlSetGraphic($Graphic, $GUI_GR_COLOR, 0x000000, 0xffffff)
GUICtrlSetGraphic($Graphic, $GUI_GR_ELLIPSE, 100, 100, 10, 10)
GUISetState (@SW_SHOW)
While 1
$msg = GUIGetMsg()
Sleep(50)
If $msg = $GUI_EVENT_CLOSE Then ExitLoop
Wend
Problem:
Ich möchte wenn ich den Button drücke, dass sich der Kreis rot färbt und wenn ich wieder loslasse zurück zu weiß. Ich hab die ganze Zeit schon hin und her probiert, aber es nicht geschafft. Kann mir jemand helfen?