Recent

Author Topic: MDI Application set child form fsMDIChild and controls set Anchors has bug  (Read 2664 times)

fast88

  • Newbie
  • Posts: 5
After setting a Lazarus child form to use fsMDIChild, if other controls on the child form have the Anchors property applied, the following issue occurs: when the application is running, if you move the mouse to the title bar of the child form, hold it down, and drag the child form, the controls on the child form that use the Anchors property will automatically become misaligned. How can this problem be solved? Please help me,Thanks! :)

jamie

  • Hero Member
  • *****
  • Posts: 7486
Try using the anchor editor instead because you need to specify what to anchor to! Right click on the child form.

Also, you could place a minimum example Demo app that maybe someone can rework for you.

Jamie
The only true wisdom is knowing you know nothing

jamie

  • Hero Member
  • *****
  • Posts: 7486
as a side note, I just tried to make a simple MDI app which use to work but seems like its totally broke in LAz 4.2

I don't know where and when it got broke, but it did.

None of the mouse events work on the main form, Menus do not property integrate from the child forms.

I just tried to compile a working MDI app in laz and now its a bomb.

 It seems someone does not care about MDI from what I can see.

 
 Jamie
The only true wisdom is knowing you know nothing

fast88

  • Newbie
  • Posts: 5
Try using the anchor editor instead because you need to specify what to anchor to! Right click on the child form.

Also, you could place a minimum example Demo app that maybe someone can rework for you.

Jamie

I have tried the method you mentioned many times, but the problem still cannot be solved. However, I still want to thank you very much for your guidance!

fast88

  • Newbie
  • Posts: 5
as a side note, I just tried to make a simple MDI app which use to work but seems like its totally broke in LAz 4.2

I don't know where and when it got broke, but it did.

None of the mouse events work on the main form, Menus do not property integrate from the child forms.

I just tried to compile a working MDI app in laz and now its a bomb.

 It seems someone does not care about MDI from what I can see.

 
 Jamie

Yes, I also have the same question.

fast88

  • Newbie
  • Posts: 5
as a side note, I just tried to make a simple MDI app which use to work but seems like its totally broke in LAz 4.2

I don't know where and when it got broke, but it did.

None of the mouse events work on the main form, Menus do not property integrate from the child forms.

I just tried to compile a working MDI app in laz and now its a bomb.

 It seems someone does not care about MDI from what I can see.

 
 Jamie

In my memory, this phenomenon already occurred in the Lazarus 3.6 version.

jamie

  • Hero Member
  • *****
  • Posts: 7486
Long ago it wasn't completely implemented but then someone worked on it and got it to a working state.

I wrote a simple app using it in lazarus but now the menus no longer integrate with the main menu.

This is for Laz 4.2/

In the trunk, it generates a Divide by zero error in the Laz logger.

Nothing like stepping backwards.

 If you want, you can generate TFRames dynamically that has all of the items onboard and make it a child control of a normal Tform, that should work. You need to create the frame ofcourse.

 You can also Create secondary TFORM's and set the parent and they should appear inside.

Jamie

The only true wisdom is knowing you know nothing

fast88

  • Newbie
  • Posts: 5
Long ago it wasn't completely implemented but then someone worked on it and got it to a working state.

I wrote a simple app using it in lazarus but now the menus no longer integrate with the main menu.

This is for Laz 4.2/

In the trunk, it generates a Divide by zero error in the Laz logger.

Nothing like stepping backwards.

 If you want, you can generate TFRames dynamically that has all of the items onboard and make it a child control of a normal Tform, that should work. You need to create the frame ofcourse.

 You can also Create secondary TFORM's and set the parent and they should appear inside.

Jamie

Thanks!

 

TinyPortal © 2005-2018