Hallo,
ich habe ein Problem und möchte euch das mal an Hand dieses Beispielcodes erläutern:
[autoit]#include <GUIConstants.au3>
$Form1 = GUICreate("Auswahl", 625, 443, 556, 260)
$Label1 = GUICtrlCreateLabel("Firma", 192, 72, 36, 17)
$Combo1 = GUICtrlCreateCombo("", 232, 72, 265, 25)
GUICtrlSetData($Combo1, 'Firma1')
GUICtrlSetData($Combo1, 'Firma2')
$Label2 = GUICtrlCreateLabel("e-mail", 192, 104, 36, 17)
$Input1 = GUICtrlCreateInput("ausgrauen wenn Firma1 oder nichts ausgewählt", 232, 104, 273, 21)
GUISetState(@SW_SHOW)
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
WEnd
Ich stell mich, glaub ich, einfach zu blöd an...
Ich möchte, dass mir "Input1" (e-mail) ausgegraut wird, wenn ich in der Comboauswahl "Firma1" oder nichts auswähle.
Nur wenn in der Comboauswahl "Firma2" ausgewählt wird, soll das Feld aktiv geschaltet werden.
Bin für jegliche Hilfe dankbar ![]()