Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2014-10

MDI - working implementation !?

7 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

zeljko
to Herwig Niemeyer
Herwig Niemeyer wrote 7 lines
On transcribing an old Delphi-Program to a Lazarus-program i was in need do have working MDI-functions. I tried to implement them in customform.inc and they work fine with my program and in my environment. There are still some problematic spots in the code and i would appreciate comments/solutions for them. regards

Please, learn howto make patch, open an issue about it at lazarus bug tracker and attach patch.
I'll commit it after review. btw. what is your environment ? widgetset ? OS ?

zeljko

Reply by email

Kostas Michalopoulos
to zeljko

Very interesting, i was actually looking into implementing MDI (for Windows... AFAIK the Qt backend already has MDI support).

Although from a quick look at the code, it doesn't seem to do that, does it? It looks like it only checks the form type, but still the forms are top level, not under an MDI client window inside the main/MDI form.

zeljko wrote 25 lines
On 10/24/2014 02:03 PM, Herwig Niemeyer wrote: > On transcribing an old Delphi-Program to a Lazarus-program i was in need > do have working MDI-functions. > I tried to implement them in customform.inc and they work fine with my > program and in my environment. > There are still some problematic spots in the code and i would > appreciate comments/solutions for them. > regards > Please, learn howto make patch, open an issue about it at lazarus bug tracker and attach patch. I'll commit it after review. btw. what is your environment ? widgetset ? OS ? zeljko -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20141026/f79ee137/attachment-0001.html>

Reply by email

zeljko
to Kostas Michalopoulos
Kostas Michalopoulos wrote 6 lines
Very interesting, i was actually looking into implementing MDI (for Windows... AFAIK the Qt backend already has MDI support). Although from a quick look at the code, it doesn't seem to do that, does it? It looks like it only checks the form type, but still the forms are top level, not under an MDI client window inside the main/MDI form.

That's why I said to Herwig to provide patch. Let we see what it does. But IMO, win32 need ws implementation, part where mdiarea must be created and also mdichild handle.

zeljko

Show quoted text 42 lines
On Sat, Oct 25, 2014 at 10:25 AM, zeljko < <mailto:>> wrote: On 10/24/2014 02:03 PM, Herwig Niemeyer wrote: On transcribing an old Delphi-Program to a Lazarus-program i was in need do have working MDI-functions. I tried to implement them in customform.inc and they work fine with my program and in my environment. There are still some problematic spots in the code and i would appreciate comments/solutions for them. regards Please, learn howto make patch, open an issue about it at lazarus bug tracker and attach patch. I'll commit it after review. btw. what is your environment ? widgetset ? OS ? zeljko -- _________________________________________________ Lazarus mailing list <mailto:> http://lists.lazarus.__freepascal.org/mailman/__listinfo/lazarus <http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus> -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply by email

zeljko
to Herwig Niemeyer
Herwig Niemeyer wrote 6 lines
I hope, i found a workaround to the problems with MDIChildren in a MainForm/MDIForm. In my testprogram it looks all okay to me. But before i load up another patch perhaps someone does his/her own tests to make sure all is working fine. https://dl.dropboxusercontent.com/u/24228536/projectMDIText.zip Herwig

I've seen what are you doing in your project. It's not real mdi implementation (you're using ParentWindow, and that won't work as expected even on windows), and that differs from normal mdi usage in Delphi and Lazarus with qt widgetset.
Win32 widgetset must implement basic stuff.
How it works under linux gtk2 ?

zeljko

Reply by email