Xojo using more or less the CPU is not important…!!!
Perhaps if my electricity bill increasing because of Xojo i may send the electricity bill to Xojo Developers. Ha ha i am joking…!!!
Please everyone see my attached file and help me where is the error.
I try over a month to minimize main window and also floating windows without success as at restore do not restore all opened floating windows…
I am hopeless and seeking real help.!!!
I suggest you create a new post with your question, because it’s not related with the current question. And at the same time add some more information about you issue because you will be asked for more details.
But maybe there are some windows that are minimized intentionally.
In that case the app should only restore the windows that weren’t minimized.
These states could be stored in a window property or a global array, that holds references to the minimized windows.
The problem might be that a window can be minimized by the user, or in the Minimized event of the main window. So, it needs a bit more care to distinguish those two conditions.
Did you have a look at his example project? childWindows() is such an Array of DesktopWindows.
Yes, there are more cases to take care of, but question was how to minimize/maximize all floating windows with their parent window…
Thank you very much for your valuable time and posting a solution.
Please verify the code you provided by adding it to the project i uploaded as i get various errors…
Floating windows are a serious problem that should be solved by developers. I keep trying to find a solution for floating windows instead of trying to finish my project (an ordering program for windows items,customers,orders etc…). I want my program to be as much as perfect it could be. If i do not find a solution i cannot go further…
i’ve made my test on a Mac and all Floating windows (I did test with three and four) got minimized and restored. Will try it tomorrow on Windows 10 - but behaviour should be the same as on Mac…
Your code to move the Floating windows is not really ready, currently you place them staggered, without regarding any user interaction, like moving a Floating window to another place.
Hi.
All Work Fine now.!!!
I had to add paint event to the main window1 and display all child windows.
i upload the project to help community if they may face the same problem as i did.