Jump to content

Recommended Posts

Posted

Hello all,

I am creating 2 Gui in the same program. (when I click on a button the other GUi appears!) But I have 2 "clickable buttons" on the taskbar... and I would like only one (the one of the main Gui!)

Which attribute do I have to use?

#include <WindowsConstants.au3>
#include <GUIConstantsEx.au3>


$form1 = GUICreate("bla bla bla", 300, 215, -1, -1)
$GO = GUICtrlCreateButton("go", 50, 160, 196, 41)
GUISetState(@SW_SHOW, $form1)


While 1
    $nMsg = GUIGetMsg()
    Select
        Case $nMsg = $GUI_EVENT_CLOSE
            Exit
        Case $nMsg = $GO
            $Form2 = GUICreate("", 420, 100,-1, -1,BitOR($WS_POPUP,$WS_BORDER))
            GUISetState(@SW_SHOW, $form2)
            ;some other stuff here
    EndSelect
WEnd

Cramaboule

Posted

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

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