View Single Post
Old 11-01-2001, 08:25 PM   #120
Jim Sachs
Developer
 
Jim Sachs's Avatar
 
Join Date: Dec 2000

Location: Southern Oregon
Posts: 9,775
I never had much luck opening a "chain" of windows. When the Aquarium is running, my program owns the main window, and the Settings window is a sub-window. Clicking the About button destroys the Settings window, and brings up the About window. The program does not exit because the main Aquarium parent window is still active.

When the Settings window is brought up by itself by right-clicking the icon, it has no parent. So as soon as you click on one of the other buttons and the window (which is the only one in the chain) is destroyed, the operating system exits the program.

In the early days of the Aquarium, I tried many schemes to get around this. Most involved keeping the first window open while I opened another. But all of them led to crashes, lockups, infinite loops and other disastrous consequences, so I gave it up.
Jim Sachs
Creator of SereneScreen Aquarium
Jim Sachs is offline   Reply With Quote