Jump to content
Sign in to follow this  
nyke0

2 GUIs - keep the last GUI above the first GUI

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.

Share this post


Link to post
Share on other sites

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)

Do
Until GUIGetMsg() = $GUI_EVENT_CLOSE

Br,

UEZ


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!
¯\_(ツ)_/¯  ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ

Share this post


Link to post
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
Sign in to follow this  

×
×
  • Create New...