Recent

Author Topic: MDI or Form in Form  (Read 6216 times)

bah

  • New Member
  • *
  • Posts: 14
MDI or Form in Form
« on: June 24, 2007, 06:28:29 am »
Hi,
  I noticed a previous post about MD or Form in Form functionality - basically that it doesn't work (although there was a fix which works ok if you only have 1 such form in form in the project).  I also notice in the RoadMap that it is not yet implemented.  Does anyone know who is working on it - or if anyone would accept a bounty?
Thanks

LazaruX

  • Hero Member
  • *****
  • Posts: 597
  • Lazarus original cheetah.The cheetah doesn't cheat
RE: MDI or Form in Form
« Reply #1 on: June 25, 2007, 10:40:07 am »
I am not sure about what you are asking, but I think I have seen a form in another form in one of those programse of the map Lazarus\examples i don't remeber the name, but look all the projects and you will find it

bah

  • New Member
  • *
  • Posts: 14
RE: MDI or Form in Form
« Reply #2 on: June 25, 2007, 11:21:01 am »
It is when you create 2 Forms, one with say a panel on it, then make the other form's parent property the panel on the first form.
for example:

Function in Form1
  if Assigned(Form2) then
  begin
    Form2.Parent := Panel1;   //this is a panel on Form1
    Form2.BorderStyle := bsNone;
    Form2.Align := alClient;
    Form2.WindowState := wsmaximized;
    Form2.Visible := true;
  end;

I use it heavy as you can create a single form with some functionality and then place it in various places in your program.  It also segments the functionality into discrete (manageable) units that manage not only the functionality but also the visuals.

Ciao

LazaruX

  • Hero Member
  • *****
  • Posts: 597
  • Lazarus original cheetah.The cheetah doesn't cheat
RE: MDI or Form in Form
« Reply #3 on: August 28, 2007, 09:29:45 am »
I remember (I was sure I had seen it) ANCHORDOCK example in the EXAMPLES folder

Bye

AlexVergaraGil

  • Newbie
  • Posts: 6
RE: MDI or Form in Form
« Reply #4 on: October 05, 2007, 06:44:54 pm »
I've tried to import my project to Lazarus from Delphi 7 and I just can't because Lazarus doesn't support MDI Applications. Any of you has any idea to make this possible??

 

TinyPortal © 2005-2018