Hallo,
ich habe ein kleines Problem mit einer Gui!
ich möchte die Gui löschen (mit ComboBox)
und anschließend neu anlegen.
Spoiler anzeigen
#include <ButtonConstants.au3>
#include <ComboConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
Opt("GUIOnEventMode", 1)
$Form1 = GUICreate("Form1", 785, 231, 213, 103)
$Auswahl = GUICtrlCreateCombo("Auswahl", 420, 56, 145, 25, BitOR($CBS_DROPDOWN,$CBS_AUTOHSCROLL))
GUICtrlSetData(-1, "Neu")
GUICtrlSetOnEvent(-1, "_Checkbox")
$Start = GUICtrlCreateButton("Start", 44, 56, 131, 25)
$Input1 = GUICtrlCreateInput("Input1", 44, 92, 133, 21)
$Checkbox1 = GUICtrlCreateCheckbox("Checkbox1", 244, 56, 97, 17)
$Checkbox2 = GUICtrlCreateCheckbox("Checkbox2", 244, 84, 97, 17)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Auswahl
Case $Start
EndSwitch
WEnd
Func _Checkbox()
GUIDelete($Form1)
MsgBox(0,"","")
;Form nochmal neu erzugen
endfunc
[/autoit]Mit der Neuanlage der Form mit Objekten komme ich irgendwie nicht weiter.
Wie kann man das machen?
Liebe Grüße
Ilse ![]()