Moin.
Habe habe ein Gui erstellt mit einigen Buttons. Ist noch lange nicht alle die drauf sollen.
Nun die Fragen:
1.) Wie mache ich die Buttons alle leuchtent gelb?
2.) Wie blende ich bei Bedarf Buttons aus?
3.) Wie blende ich bei Bedarf Buttons auch wieder ein?
Spoiler anzeigen
#include <GUIConstants.au3>
[/autoit] [autoit][/autoit] [autoit][/autoit] [autoit]$Form1 = GUICreate("lightbox", 768, 282, 148, 281)
GUISetBkColor(0x000000)
$a1 = GUICtrlCreateButton("", 8, 8, 17, 25, 0)
$a2 = GUICtrlCreateButton("", 24, 8, 17, 25, 0)
$a3 = GUICtrlCreateButton("", 40, 8, 17, 25, 0)
$b1 = GUICtrlCreateButton("", 8, 32, 17, 25, 0)
$b2 = GUICtrlCreateButton("", 24, 32, 17, 25, 0)
$b3 = GUICtrlCreateButton("", 40, 32, 17, 25, 0)
$c1 = GUICtrlCreateButton("", 8, 56, 17, 25, 0)
$c2 = GUICtrlCreateButton("", 24, 56, 17, 25, 0)
$c3 = GUICtrlCreateButton("", 40, 56, 17, 25, 0)
$d1 = GUICtrlCreateButton("", 8, 80, 17, 25, 0)
$d2 = GUICtrlCreateButton("", 24, 80, 17, 25, 0)
$d3 = GUICtrlCreateButton("", 40, 80, 17, 25, 0)
$e1 = GUICtrlCreateButton("", 8, 104, 17, 25, 0)
$e2 = GUICtrlCreateButton("", 24, 104, 17, 25, 0)
$e3 = GUICtrlCreateButton("", 40, 104, 17, 25, 0)
$f1 = GUICtrlCreateButton("", 8, 128, 17, 25, 0)
$f2 = GUICtrlCreateButton("", 24, 128, 17, 25, 0)
$f3 = GUICtrlCreateButton("", 40, 128, 17, 25, 0)
$g1 = GUICtrlCreateButton("", 8, 152, 17, 25, 0)
$g2 = GUICtrlCreateButton("", 24, 152, 17, 25, 0)
$g3 = GUICtrlCreateButton("", 40, 152, 17, 25, 0)
$h1 = GUICtrlCreateButton("", 8, 176, 17, 25, 0)
$h2 = GUICtrlCreateButton("", 24, 176, 17, 25, 0)
$h3 = GUICtrlCreateButton("", 40, 176, 17, 25, 0)
$i1 = GUICtrlCreateButton("", 8, 200, 17, 25, 0)
$i2 = GUICtrlCreateButton("", 24, 200, 17, 25, 0)
$i3 = GUICtrlCreateButton("", 40, 200, 17, 25, 0)
$j1 = GUICtrlCreateButton("", 8, 224, 17, 25, 0)
$j2 = GUICtrlCreateButton("", 24, 224, 17, 25, 0)
$j3 = GUICtrlCreateButton("", 40, 224, 17, 25, 0)
$k1 = GUICtrlCreateButton("", 8, 248, 17, 25, 0)
$k2 = GUICtrlCreateButton("", 24, 248, 17, 25, 0)
$k3 = GUICtrlCreateButton("", 40, 248, 17, 25, 0)
GUISetState(@SW_SHOW)
[/autoit] [autoit][/autoit] [autoit][/autoit] [autoit]While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
WEnd
LG Lina