anfänger frage ^^

  • hey,
    ich bins mal wieder dope.
    Mein frage diesmal ist :
    Wie muss der code sein das wenn ich auf ein button klicke das sich dann ein neues fenster öffnet, also eine neue form?
    ich hab schon probiert und probiert aber ich bekomme es nicht hin.
    ich denke mal ihr könnt mir helfen .
    danke
    MFG dope³

    Einmal editiert, zuletzt von doPe (16. August 2009 um 18:49)

  • [autoit]

    #include <ButtonConstants.au3>
    #include <GUIConstantsEx.au3>
    #include <WindowsConstants.au3>
    #Region ### START Koda GUI section ### Form=
    $Form1 = GUICreate("Form1", 633, 449, 192, 124)
    $Button1 = GUICtrlCreateButton("Button1", 104, 184, 75, 25, $WS_GROUP)
    GUISetState(@SW_SHOW)
    #EndRegion ### END Koda GUI section ###

    [/autoit][autoit][/autoit][autoit]

    While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
    Case $GUI_EVENT_CLOSE
    Exit
    case $Button1
    $form2 = GUICreate("Test", 633, 449, 192, 124)
    GUISetState(@SW_SHOW)
    while 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
    case $GUI_EVENT_CLOSE
    GUIDelete($form2)
    ExitLoop
    EndSwitch
    WEnd
    EndSwitch
    WEnd

    [/autoit]
    [autoit]


    #cs-----------------------------------------------------------------------------
    Hilfe ist immer gut also nimmt sie an ^^
    #ce-----------------------------------------------------------------------------

    [/autoit]