You can use the Window process command to determine that both windows are in the same process.
John DeSoi, Ph.D. > On Aug 2, 2019, at 11:18 AM, Pat Bensky via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > I also have a question about this ... > In our database we require at least one user window to always be open. When > a user closes a window, the close method counts the number of user windows > and if there is only one, it doesn't allow it to be closed. > However ... > If the user has opened another window within the same process (for a > preview, for example), 4D now thinks there are two user windows open, and > it allows the user to close it ... which of course closes both of the > windows. > Other than keeping track of all open windows-within-windows, which is > messy, is there any way to differentiate main windows and their associated > windows within the same process? ********************************************************************** 4D Internet Users Group (4D iNUG) Archive: http://lists.4d.com/archives.html Options: https://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4d_tech-unsubscr...@lists.4d.com **********************************************************************