Recent

Author Topic: MDI ChildForm  (Read 2331 times)

Dzandaa

  • Hero Member
  • *****
  • Posts: 548
  • From C# to Lazarus
Re: MDI ChildForm
« Reply #15 on: July 08, 2025, 12:40:05 pm »
Hi,

@CharlyTango:

Is it possible to Title Horizontally or Vertically the Tabs like this ?

Thank you.

B->
Regards,
Dzandaa

CharlyTango

  • Full Member
  • ***
  • Posts: 180
Re: MDI ChildForm
« Reply #16 on: July 08, 2025, 01:35:28 pm »
a tabbed UI works like any modern Internetbrowser.

What you do on the tabs depends on you, even if you glue multiple windows on a tab.
But what ist the purpose? If it should to choose a picture a TGrid or TDrawgrid would be a better solution.
They show the picture in a grid-form without the frames of a form/window

https://wiki.lazarus.freepascal.org/TDrawGrid
« Last Edit: July 08, 2025, 01:37:57 pm by CharlyTango »
Lazarus stable, Win32/64

Dzandaa

  • Hero Member
  • *****
  • Posts: 548
  • From C# to Lazarus
Re: MDI ChildForm
« Reply #17 on: July 08, 2025, 01:40:35 pm »
Hi,

@CharlyTango:

O.K. and you can magnify or minimize each Windows independently?

Thank you.

B->
Regards,
Dzandaa

CharlyTango

  • Full Member
  • ***
  • Posts: 180
Re: MDI ChildForm
« Reply #18 on: July 08, 2025, 07:17:00 pm »
I assume so, even if your specifications seem to be no more than ideas and far from precise requirements in a program situation.

It's more like asking: can you create a wormhole with folded space? The answer would always be “yes”, but it wouldn't get you anywhere
Lazarus stable, Win32/64

Dzandaa

  • Hero Member
  • *****
  • Posts: 548
  • From C# to Lazarus
Re: MDI ChildForm
« Reply #19 on: July 08, 2025, 07:25:19 pm »
Hi,

@CharlyTango:

So Tabs cannot replace MDI Forms.

Thank you.

B->
Regards,
Dzandaa

CharlyTango

  • Full Member
  • ***
  • Posts: 180
Re: MDI ChildForm
« Reply #20 on: July 08, 2025, 08:41:25 pm »
IMO: They can  8)

But if you're cought in MDI thinking nothing will convince you.

I don't want to proselytize. With me, everyone has the right to transport themselves to their own personal hell, or what they think is heaven, in their own individual way. That is the burden of choice.
I claim the same right for myself.


Have fun

PS: I'm out
Lazarus stable, Win32/64

astar

  • New member
  • *
  • Posts: 7
Re: MDI ChildForm
« Reply #21 on: July 10, 2025, 06:03:20 pm »
Hi
I thought of using a parent for the second window as a replacement for MDI - the first - the main form.
It doesn't even flash as much as with the classic MDI.

Code: Pascal  [Select][+][-]
  1. procedure TForm1.Button2Click(Sender: TObject);
  2. begin
  3.     NewTab := TTabSheet.Create(PageControl1);
  4.     NewTab.PageControl := PageControl1;
  5.     NewTab.Caption := 'New windows';
  6.  
  7.     Form2:=TForm2.Create(self);
  8.     Form2.Parent :=form1;      //NewTab;
  9.     Form2.BorderStyle:= bsSizeable;          //bsNone;
  10.     Form2.Show;
  11. end;        
  12.  

 

TinyPortal © 2005-2018