Jump to content

Close windows


Recommended Posts

Hello i have this GUI

Global $GUIListeConfigs = GUICreate("Configs", 319, 156, 684, 408)
$GroupBox1 = GUICtrlCreateGroup("", 8, 1, 305, 97)
Global $Combo1 = GUICtrlCreateCombo("", 72, 56, 169, 25)
$Label1 = GUICtrlCreateLabel("Selectionnez une Configuration", 48, 16, 226, 24)
GUICtrlSetFont(-1, 12, 400, 0, "MS Sans Serif")
GUICtrlCreateGroup("", -99, -99, 1, 1)
Global $ButtonValiderCreateTrajet = GUICtrlCreateButton("&OK", 73, 107, 75, 25)
Global $ButtonCancelCreateTrajet = GUICtrlCreateButton("&Cancel", 170, 107, 75, 25)
#EndRegion ### END Koda GUI section ###

 

And i have make this

While 1
    $nMsg = GUIGetMsg(1)

    Select
        Case $nMsg[0] = $GUI_EVENT_CLOSE
            If $nMsg[1] = $GUIListeConfigs Then
                GUISetState(@SW_hide, $GUIListeConfigs)
            Else
                Exit
            EndIf

        Case $nMsg[0] = $ButtonCancelCreateTrajet
            GUISetState(@SW_SHOW, $GUIListeConfigs)
    EndSelect
WEnd

 

But if i click on  $ButtonCancelCreateTrajet and not close windows ...

Can you tell me why ?

 

THX

Link to comment
Share on other sites

  • Developers
1 hour ago, W4rrior said:

I have already open post ?

Seriously?   ... and creating a account because your "friend" got banned is not OK eaither!

You know what ... you're banned too. 

Bye.

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

  • Jos locked this topic
Guest
This topic is now closed to further replies.
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...