Hallo,
Ich wollte mal fragen wie ich per Button Click eine neue Form aufrufen kann?
Nach Button Click neue Form
-
- [ offen ]
-
Th3_Palladin -
13. Januar 2008 um 18:14 -
Geschlossen -
Erledigt
-
-
- Offizieller Beitrag
Zuerst alle GUI definieren, dann die erste aktivieren mit GUISetState().
Mit gleicher Funktion und den Flags @SW_HIDE und @SW_SHOW dann entsprechend eine GUI verstecken und die andere anzeigen. -
hm versteh ich net so ganz
[autoit]$start = GUICtrlCreateButton("&Start", 6, 456, 75, 25, 0) $cancel = GUICtrlCreateButton("&Cancel", 94, 456, 75, 25, 0) $help = GUICtrlCreateButton("&Help", 184, 456, 75, 25, 0) GUISetState(@SW_SHOW)
[/autoit]
[autoit]
Form selber habe ich natürlcih auch nur jetzt will ich das wne ich button help drücke diese Form kommen soll:#include
[/autoit][autoit][/autoit][autoit]#Region ### START Koda GUI section ### Form=
[/autoit][autoit][/autoit][autoit]
$Form2 = GUICreate("Hilfe By:Aang !", 405, 171, -1, -1)
GUISetBkColor(0xFFFFFF)
FileInstall ( "D:\Dokumente und Einstellungen\Besitzer\Desktop\alo\1.JPG", @ScriptDir & "\imbue.jpg")
$PIC1 = GUICtrlCreatePic(@ScriptDir & "\imbue.jpg", 8, 8, 49, 36, BitOR($SS_NOTIFY,$WS_GROUP,$WS_CLIPSIBLINGS))
FileInstall ( "D:\Dokumente und Einstellungen\Besitzer\Desktop\alo\2.JPG", @ScriptDir & "\slot.jpg")
$PIC1 = GUICtrlCreatePic(@ScriptDir & "\slot.jpg", 8, 48, 252, 36, BitOR($SS_NOTIFY,$WS_GROUP,$WS_CLIPSIBLINGS))
$Label1 = GUICtrlCreateLabel("<--Imbue !", 72, 16, 61, 17)
GUICtrlSetFont(-1, 8, 800, 0, "MS Sans Serif")
$Label2 = GUICtrlCreateLabel("<--Slots!", 272, 56, 51, 17)
GUICtrlSetFont(-1, 8, 800, 0, "MS Sans Serif")
$Label3 = GUICtrlCreateLabel("F5 Start Bot,F6 Stop Bot , Esc Exit Bot , F7 Auto Grab ,F8 Stop Grab", 8, 88, 394, 17)
GUICtrlSetFont(-1, 8, 800, 0, "MS Sans Serif")
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###While 1
[/autoit][autoit][/autoit][autoit]
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
ExitEndSwitch
[/autoit]
WEnd
</GUIConstants.au3>