.. mean while they attempt the same thing by putting forms inside of forms which for me also works well..I have a very old project which I can't simply "re-engineer to an SDI lay-out".
use this to set the parent for windows instead of the Parent property...Thanks a lot !
Windows.SetParent(TheNewchildForm.handle, TheParentForm.Handle);
and after each change to the borderstyle you will need to reset the Parent via this method..
I could most likely punch out a quick demo on how to create a form to look this way...Yes please !
.. you can process the LM_NCHITTEST so that you can send back modified info for example for the location of where the mouse is..message LM_NCHitTest helped me setting the focus to the actual ChildWindow, thanks !
But it detects the Mouse Pointer ( .. position) only over the frame of the ChildWindow, not over the TMemo ..
.. N(on)C(lient)HitTest ..Okay .. helps to know what it means .. :o
I am a little confused as to what you want at this time...In my earlier Code Examples, even when selecting another ChildWindow than the first one,
I think what you want is to wave the mouse across the forms and have them automatically jump forward and become focused without clicks, is that it ?Originally this was not my intention.
Demo Attached;assimilated .. 8-)
The trunk has working MDI for windows.I have an old Delphi 5 Template project in my repository (the original Delphi 5 Template)
There is still a problem with mdi as I noticed that still exist even with the trunk.I found this problem today, too.
And that is if minimize a child it does as you expect however, if resize the parent in the state the min child form does not follow its parent.
I fixed this myself in the parent resize event to keep this updated.
Just a remark: MDI applications are deprecated (by microsoft) for the past 20 years ..I still do not understand why people make such general statements like that.
MDI applications ... never worked well with Lazarus.I can agree with that.
The trunk has working MDI for windows.I tried this today .. works !
Wow cool,I already attached my example "MDIsimulator" as sourcecode in earlier posts here.
Will it work on other platform? It will be great if you publish your work. Thanks
I already attached my example "MDIsimulator" as sourcecode in earlier posts here.
But "MDIsimulator" is only a playground for trying to simulate MDI behavior under Windows.
I don't know how far this maybe works on other platforms. Please download and try.
For MDI You could try qt5 widgetset - which is said to be working under Windows, Linux and MacOS.