Marklar Posted June 15, 2006 Share Posted June 15, 2006 (edited) I have my main window which is full screen. Then I have several items you can select from a menu and they each open up a smaller window. I set each one to be a child window of $main_window but it seems to only let me open one at a time whereas I can't keep more than one smaller window open at the same time. I'm trying to setup 1 window to show realtime data and another for data input Is there a limit to the number of child windows you can have on your screen at once?? The child window example in the helpfile only shows one child window, which I would expect it to to keep it simple. Are there any examples anywhere that have several, say 3 or 4, windows open? Edited June 15, 2006 by Marklar Link to comment Share on other sites More sharing options...
nfwu Posted June 15, 2006 Share Posted June 15, 2006 (edited) http://dundats.mvps.org/autoit/html/faq.htm#15Look at technical limitations in the Help File under FAQs#)edit: Maximum number of GUI windows: 1024 Edited June 15, 2006 by nfwu TwitterOut of date stuff:Scripts: Sudoku Solver | Webserver | 3D library (Pure AutoIt) | Wood's GadgetsUDFs: _WoodUniqueID() | _DialogEditIni() | _Console*() | _GetIPConfigData() | _URLEncode/Decode() Link to comment Share on other sites More sharing options...
Marklar Posted June 15, 2006 Author Share Posted June 15, 2006 okay... you know of any scripts that show a gui with more than 1 child window open at the same time? here's my main window code $main_window = GUICreate($title,(@DesktopWidth-100),(@DesktopHeight-100),-1,-1,$WS_MAXIMIZE + $WS_MAXIMIZEBOX + $WS_MINIMIZEBOX) then it checks for the menu click GUISetState() While 1 $msg = GUIGetMsg() Select case $msg = $GUI_EVENT_CLOSE or $msg = $exititem GUIDelete($main_window) Exit case $msg = $prioritylist priority_window() case $msg = $viewstatusitem board() case $msg = $neworder new_order() EndSelect WEnd the begginning of the board function func board() dim $order_num, $truck, $shipper, $receiver dim $order[5] dim $list[40] $dispatch_board = GuiCreate("Dispatch Board",1018,618,1,51,-1,$WS_EX_MDICHILD,$main_window) $orders_list = GUICtrlCreateListView ("Order|Truck|Shipper|Destination|Status",10,10,(@DesktopWidth-250),400) $i = 1 _GUICtrlListViewSetColumnWidth ($orders_list, 0, 80) _GUICtrlListViewSetColumnWidth ($orders_list, 1, 80) _GUICtrlListViewSetColumnWidth ($orders_list, 2, 250) _GUICtrlListViewSetColumnWidth ($orders_list, 3, 250) Then the priority window (which after it's closed will not come up again for some reason until you restart the script func priority_window() $priority_window = GUICreate("Priority List",550,180,1,51,-1,$WS_EX_MDICHILD,$main_window) Both will not open at the same time. Only one at a time. Link to comment Share on other sites More sharing options...
Uten Posted June 15, 2006 Share Posted June 15, 2006 Another sample that might give you some ideas: #include <GUIConstants.au3> HotKeySet("{ESC}", "MyExit") Local $MAX = 5 local $guis[$MAX + 1] for $i = 1 to $MAX $guis[$i] = GUICreate("GUI: " & $i, 150, 100, $i*150, $i*100) GUISetState(@SW_SHOW) Next Local $msg = GUIGetMsg(1) ;NOTE: Read the help file on GUIGetMsg While $msg[0] <> -3 $msg = GUIGetMsg(1) Switch $msg[0] case 0 sleep(100) case -11 case else ConsoleWrite("Control or event ID:=" & $msg[0] & ", hwnd:=" & $msg[1] & @LF) EndSwitch WEnd Func MyExit() exit EndFunc Exit Please keep your sig. small! Use the help file. Search the forum. Then ask unresolved questions :) Script plugin demo, Simple Trace udf, TrayMenuEx udf, IOChatter demo, freebasic multithreaded dll sample, PostMessage, Aspell, Code profiling Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now