Jump to content

2 GUIs - keep the last GUI above the first GUI


Go to solution Solved by UEZ,

Recommended Posts

Hello, I have 2 GUIs in my script. If I start the second, I can click to the first GUI to hide/overlap the second GUI. How I can force the second GUI to finish it before I can click back to the first GUI?

For example: 1st GUI is started, 2nd GUI ist also started, then I click to the 1st GUI and then come the 2nd GUI to the foreground.

Link to comment
Share on other sites

  • Solution

You can set the 2nd GUI as a child GUI of the 1st one:

#include <GUIConstantsEx.au3>

$hGUI1 = GUICreate("Primary", 600, 400)
GUISetState(@SW_SHOW, $hGUI1)
$hGUI2 = GUICreate("Secondary", 300, 200, -1, -1, Default, Default, $hGUI1)
GUISetState(@SW_SHOW, $hGUI2)




Please don't send me any personal message and ask for support! I will not reply!

Selection of finest graphical examples at Codepen.io

The own fart smells best!
Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!
¯\_(ツ)_/¯  ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ

Link to comment
Share on other sites

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...