Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > AutoIt
You last visited: Today at 19:09

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[HILFE] $GUI_EVENT_CLOSE

Discussion on [HILFE] $GUI_EVENT_CLOSE within the AutoIt forum part of the Coders Den category.

Reply
 
Old   #1
 
xEr0r's Avatar
 
elite*gold: 227
Join Date: Jun 2010
Posts: 295
Received Thanks: 37
Question [HILFE] $GUI_EVENT_CLOSE

Also sagen wir ich hab eine GUI. Jz drück ich auf nen Button und er öffnet sich ne neue Form mit ner Input und nem Button. Jz will ich das, wenn ich bei der 2. Form auf den X Button also zum schließen drücke, nur Form 2 geschlossen wird und nicht beide. Geht das?

GIbtn Thx^^
xEr0r is offline  
Old 03/25/2011, 23:51   #2
 
omer36's Avatar
 
elite*gold: 0
Join Date: Mar 2009
Posts: 2,317
Received Thanks: 1,255
zb so
PHP Code:
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form= ;erste gui erstellt..
$Form1 GUICreate("Form1"625443192124)
$Button1 GUICtrlCreateButton("2. gui öffnen"81508033$WS_GROUP)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
#Region ### START Koda GUI section ### Form= ;zweite gui erstellt...
$Form2 GUICreate("andere gui"574191210205)
$Button2 GUICtrlCreateButton("schließen"8725733$WS_GROUP)
GUISetState(@SW_HIDE)
#EndRegion ### END Koda GUI section ###

While 1
    $nMsg 
GUIGetMsg(1)
    Switch 
$nMsg[1]
        Case 
$Form1
            
Switch $nMsg[0]
                Case 
$GUI_EVENT_CLOSE
                    
Exit
                Case 
$Button1
                    GUISetState
(@SW_SHOW$Form2)
            EndSwitch
        Case 
$Form2
            
Switch $nMsg[0]
                Case 
$GUI_EVENT_CLOSE
                    GUISetState
(@SW_HIDE$Form2)
                Case 
$Button2
                    GUISetState
(@SW_HIDE$Form2)
            EndSwitch
    EndSwitch
WEnd 
omer36 is offline  
Thanks
1 User
Reply


Similar Threads Similar Threads
Hilfe Hilfe Pls Gucken Brauche Hilfe
04/04/2010 - Technical Support - 3 Replies
Ja wegen der Signatur sieht es euch ma an in pics /http://img641.imageshack.us/img641/6070/unbenann t790kjkh.png http://img444.imageshack.us/img444/6981/unbenannt kjhghzuijhbh.png kann mir pls einer HELFEN...



All times are GMT +1. The time now is 19:10.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.