Jump to content

Child GUI Windows


drw112
 Share

Recommended Posts

Right now I have 6 GUI windows with 5 being created like.

$GUI_POPUP1 = GUICreate("txt1", 200, 200, 1225, 810, BitOR($WS_MINIMIZEBOX, $WS_CAPTION, $WS_POPUP, $WS_GROUP, $WS_BORDER, $WS_CLIPSIBLINGS))

As of right now they are all independent of each other. That being, if the main window is minimized all of the others stay open and each window has it's own item in the task bar. I would like them to be essentially tied to the main window and not have an item in the task bar. So if the main window is minimized all of the child windows minimize too. Is this possible?

Link to comment
Share on other sites

Right now I have 6 GUI windows with 5 being created like.

$GUI_POPUP1 = GUICreate("txt1", 200, 200, 1225, 810, BitOR($WS_MINIMIZEBOX, $WS_CAPTION, $WS_POPUP, $WS_GROUP, $WS_BORDER, $WS_CLIPSIBLINGS))

As of right now they are all independent of each other. That being, if the main window is minimized all of the others stay open and each window has it's own item in the task bar. I would like them to be essentially tied to the main window and not have an item in the task bar. So if the main window is minimized all of the child windows minimize too. Is this possible?

Easiest way to find out is to just try it.

; *** Start added by AutoIt3Wrapper ***
#include <WindowsConstants.au3>
; *** End added by AutoIt3Wrapper ***
#AutoIt3Wrapper_Add_Constants=n
$hP = GUICreate("Parent",700,470)
Dim $GUI_POPUP[6]
GUISetState()
GUISetBkColor(0)
for $n = 0 to 2
    $GUI_POPUP[$n] = GUICreate("txt"& $n+1, 200, 200, 206*$n, 2, BitOR($WS_MINIMIZEBOX, $WS_CAPTION, $WS_CHILD, $WS_GROUP, $WS_BORDER),-1,$hP)
    GUISetState()
    $GUI_POPUP[$n+3] = GUICreate("txt" & $n+4, 200, 200, 206*$n, 234, BitOR($WS_MINIMIZEBOX, $WS_CAPTION, $WS_CHILD, $WS_GROUP, $WS_BORDER, $WS_CLIPSIBLINGS),-1,$hP)
    GUISetState()
Next
while 1
if GUIGetMsg() = -3 then exit
WEnd
Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script.
Link to comment
Share on other sites

Wow! awesome, thank you so much.

Easiest way to find out is to just try it.

; *** Start added by AutoIt3Wrapper ***
#include <WindowsConstants.au3>
; *** End added by AutoIt3Wrapper ***
#AutoIt3Wrapper_Add_Constants=n
$hP = GUICreate("Parent",700,470)
Dim $GUI_POPUP[6]
GUISetState()
GUISetBkColor(0)
for $n = 0 to 2
    $GUI_POPUP[$n] = GUICreate("txt"& $n+1, 200, 200, 206*$n, 2, BitOR($WS_MINIMIZEBOX, $WS_CAPTION, $WS_CHILD, $WS_GROUP, $WS_BORDER),-1,$hP)
    GUISetState()
    $GUI_POPUP[$n+3] = GUICreate("txt" & $n+4, 200, 200, 206*$n, 234, BitOR($WS_MINIMIZEBOX, $WS_CAPTION, $WS_CHILD, $WS_GROUP, $WS_BORDER, $WS_CLIPSIBLINGS),-1,$hP)
    GUISetState()
Next
while 1
if GUIGetMsg() = -3 then exit
WEnd

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
 Share

  • Recently Browsing   0 members

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