Hey Zusammen,
ich möchte ne Gui erstellen bei denen man auf Zurück klickt und dann wieder auf die erste gelangt und die zweite sich schließt.
Habs im onevent mode versucht, aber es klappt nicht.
Kann wer von euch mal drüber schauen...
Hab ein Beispiel gepostet.
Spoiler anzeigen
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
Opt("GUIOnEventMode", 1)
$Form1 = GUICreate("Form1", 283, 45, 434, 393)
$Label1 = GUICtrlCreateLabel("zu Seite 2", 80, 0, 100, 33)
GUICtrlSetOnEvent($Label1, "Seite2")
GUICtrlSetFont(-1, 20, 400, 0, "Tele-GroteskFet")
GUISetState(@SW_SHOW)
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
WEnd
func Seite2()
Opt("GUIOnEventMode", 1)
$Form1 = GUICreate("Form2", 283, 45, 434, 393)
$Button1 = GUICtrlCreateButton("zurück", 200, 0, 75, 25, $WS_GROUP)
GUICtrlSetOnEvent($Button1,"zuruck")
$Label1 = GUICtrlCreateLabel("Seite 2", 80, 0, 100, 33)
GUICtrlSetFont(-1, 20, 400, 0, "Tele-GroteskFet")
GUISetState(@SW_SHOW)
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
WEnd
EndFunc
func zuruck()
GUIDelete("Form2")
EndFunc