Bill, Excellent point, but...
I can report that the behavior has also been observed directly—that is, similar code that does not close newly-created windows produces visibly maximized windows on my Mac and visibly unmaximized windows on Windows. Short of a video, I wasn’t sure how to report this authoritatively, so I resorted to the code below (which was tested on both platforms). To your point, it’s certainly possible that platform differences in treatment of async calls result in (apparently-) inappropriate behavior under Windows but (apparently-) appropriate behavior under Mac OS using my sample code. But they wouldn’t explain the observed differences in window behavior. I suggest that there’s still a problem somewhere. Thanks for the rapid response. Ed > On Sep 21, 2023, at 7:12 AM, bill lam <bbill....@gmail.com> wrote: > > wd'show' is asynchronous. It returns immediately so that the subsequent > commands are possibly executed before the window is realized. > > On Thu, 21 Sep 2023 at 12:26 PM Ed Gottsman <edward.j.gotts...@gmail.com > <mailto:edward.j.gotts...@gmail.com>> > wrote: > >> Greetings. I’m supporting a Windows user (I do not have Windows myself) >> who seems to be running into a difficulty with wd's layout manager. >> >> The code below creates a series of windows. On my Mac setup, which is: >> >> Engine: j9.5.0-beta7/j64avx2/darwin >> Build: commercial/2023-09-15T21:06:17/clang-14-0-0/SLEEF=1 >> Library: 9.5.4 >> Qt IDE: 2.5.1/6.5.2(6.5.2) >> OS Ver: macOS Ventura (13.4) 22.5.0 >> Platform: Darwin 64 >> Installer: j9.5 install >> InstallPath: /applications/j9.5 >> Contact: www.jsoftware.com >> >> …the output is: >> >> physical screen dimensions: 1680 1050 >> testNoContainer width, height: 1680 931 >> testHContainer width, height: 1680 931 >> testVContainer width, height: 1680 931 >> testVHContainer width, height: 1680 931 >> testVVHContainer width, height: 1680 931 >> >> That is, the windows are maximized as expected when using wd ‘pshow >> maximized' >> >> On his setup, which is: >> >> Engine: j9.5.0-beta7/j64avx2/windows >> Build: commercial/2023-09-15T21:03:14/clang-16-0-6/SLEEF=1 >> Library: 9.5.4 >> Qt IDE: 2.5.1/6.5.2(6.5.2) >> OS Ver: Windows 11 Version 22H2 10.0.22621 >> Platform: Win 64 >> Installer: j9.5 install >> InstallPath: c:/users/bill/j9.5 >> Contact: www.jsoftware.com <http://www.jsoftware.com/> >> <http://www.jsoftware.com/> >> >> …by contrast, the output is: >> >> physical screen dimensions: 3440 1440 >> testNoContainer width, height: 18 18 >> testHContainer width, height: 200 100 >> testVContainer width, height: 200 100 >> testVHContainer width, height: 200 100 >> testVVHContainer width, height: 200 100 >> >> That is, the windows are not maximized. >> >> There is another problem that I cannot as easily isolate but that may be >> related. From Windows users, I’m suddenly getting multiple reports of the >> wd application I’m supporting freezing on launch. >> >> I’d very much appreciate any thoughts on what I might be missing here. >> >> Thank you. >> >> Ed >> >> >> testNoContainer =: {{ >> wd 'pc form escclose' >> wd 'cc context2 webview' >> wd 'pshow maximized' >> 'w h' =. ". wd 'getp wh' >> wd 'pclose' >> smoutput 'testNoContainer width, height: ' , ": w , h >> }} >> >> testHContainer =: {{ >> wd 'pc form escclose' >> wd 'bin h' >> wd 'cc context1 isigraph' >> wd 'cc context2 checkbox' >> wd 'bin z' >> wd 'pshow maximized' >> 'w h' =. ". wd 'getp wh' >> wd 'pclose' >> smoutput 'testHContainer width, height: ' , ": w , h >> }} >> >> testVContainer =: {{ >> wd 'pc form escclose' >> wd 'bin v' >> wd 'cc context1 isigraph' >> wd 'cc context2 webview' >> wd 'bin z' >> wd 'pshow maximized' >> 'w h' =. ". wd 'getp wh' >> wd 'pclose' >> smoutput 'testVContainer width, height: ' , ": w , h >> }} >> >> testVHContainer =: {{ >> wd 'pc form escclose' >> wd 'bin v' >> wd 'bin h' >> wd 'cc context1 isigraph' >> wd 'cc context2 checkbox' >> wd 'bin z' >> wd 'bin h' >> wd 'cc context3 isigraph' >> wd 'cc context4 checkbox' >> wd 'bin z' >> wd 'bin z' >> wd 'pshow maximized' >> 'w h' =. ". wd 'getp wh' >> wd 'pclose' >> smoutput 'testVHContainer width, height: ' , ": w , h >> }} >> >> testVVHContainer =: {{ >> wd 'pc form escclose' >> wd 'bin v' >> wd 'bin h' >> wd 'cc cb1 checkbox' >> wd 'cc cb2 checkbox' >> wd 'bin z' >> wd 'bin v' >> wd 'bin h' >> wd 'cc context1 isigraph' >> wd 'cc context2 checkbox' >> wd 'bin z' >> wd 'bin h' >> wd 'cc context3 isigraph' >> wd 'cc context4 checkbox' >> wd 'bin z' >> wd 'bin z' >> wd 'pshow maximized' >> 'w h' =. ". wd 'getp wh' >> wd 'pclose' >> smoutput 'testVVHContainer width, height: ' , ": w , h >> }} >> >> form_close =: {{ >> wd 'pclose' >> }} >> >> go =: {{ >> smoutput 'physical screen dimensions: ' , ": 2 3 { ". wd 'qscreen' >> testNoContainer '' >> testHContainer '' >> testVContainer '' >> testVHContainer '' >> testVVHContainer '' >> }} >> >> go '' >> ---------------------------------------------------------------------- >> For information about J forums see http://www.jsoftware.com/forums.htm >> > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm