Docking windows lazarus / 31-LCL ---------------------------------------------------------------------- LazaruX · 2017-01-20 12:59 LazDock, EasyDockManager, AnchorDock, Sparta, ... Can somebody explain how to create 3 forms which dock to a main form? I find it very confusing, different names for the same feature. I have tried to follow the steps here: http://wiki.freepascal.org/Anchor_Docking#Features but they are not clear enough. Is there a tutorial which even somebody with 0 knowledge will be able to follow? ---------------------------------------------------------------------- jmpessoa · 2017-01-20 16:33 Yes!  Go to: https://github.com/FlKo/LazarusDockedDesktops ---------------------------------------------------------------------- LazaruX · 2017-01-21 21:32 "For all those who ever wanted "their" Lazarus to look and behave close to the latest releases of Delphi™ / C++ Builder™ but gave up because of some very annoying bugs, here comes a solution: " I don't want Lazarus to be docked, I already managed to do that. I want to create docked applications. I want to create a main form and 2 sub forms and be able to dock those 2 sub forms to the main form. ---------------------------------------------------------------------- valdir.marcos · 2017-01-21 21:58 If you cannot dock your application, then MDI or TDI might be an alternative for you. Take a look here for MDI (multiple document interface): http://forum.lazarus.freepascal.org/index.php/topic,34137.0.html http://forum.lazarus.freepascal.org/index.php/topic,29357.msg185322.ht ml#msg185322 And look here for TDI (tabbed document interface): http://forum.lazarus.freepascal.org/index.php/topic,34142.0.html ---------------------------------------------------------------------- LazaruX · 2017-01-22 21:52 I know what TDI and MDI are, and that's not what I want. I want to know what is the difference between Anchordock, Easy DOck, Sparta ... and how I can create a simple application with Windows that dock. I don't want to dock the IDE (already did), I don't want another interface. ---------------------------------------------------------------------- JuhaManninen · 2017-01-23 01:02 Quote from: LazaruX on January 22, 2017, 10:52:36 pmI want to know what is the difference between Anchordock, Easy DOck, Sparta ... and how I can create a simple application with Windows that dock. AnchorDocking is the recommended solution. I think it works quite well. It has improved steadily. Please try AnchorDocking in Lazarus trunk if you have problems. It has the MiniIDE example, take a look. EasyDock has not been maintained recently and has problems. Sparta implements the docked form designer in Lazarus IDE. It is not related to AnchorDocking or other general purpose docking solutions. IIRC the earlier (now obsolete) docking solution in Sparta was a fork of GlassDocking which is a fork of AnchorDocking. ---------------------------------------------------------------------- LazaruX · 2017-01-24 11:36 Ok I managed to strip down the MiniIDE project. I removed the forms create din code and added my own forms which now dock (I had to add some code in FormCreate). Now I have an issue: when I dock my windows the layout is not saved ---------------------------------------------------------------------- mangakissa · 2017-01-24 12:27 Quote from: LazaruX on January 20, 2017, 01:59:07 pmCan somebody explain how to create 3 forms which dock to a main form? Using a panel or tabsheet as owner? Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i var Frm : TForm;begin  Frm := Tform.create(panel1);  Frm.parent := Frm;end;Or do you mean something else? ---------------------------------------------------------------------- LazaruX · 2017-01-26 15:40 I don't know if those 5 lines of code help me, it would be great to have a tutorial step by step, and not the existing one. I currently have been able to modify MiniIDE and I have created 2 extra forms which now dock to the main windows. The issue I have is that the layout cannot be saved to xml. ---------------------------------------------------------------------- LazaruX · 2017-01-30 15:38 No answer...? ---------------------------------------------------------------------- JuhaManninen · 2017-02-01 21:43 Quote from: LazaruX on January 26, 2017, 04:40:13 pmI currently have been able to modify MiniIDE and I have created 2 extra forms which now dock to the main windows. The issue I have is that the layout cannot be saved to xml. Does saving work in the MiniIDE itself? It works here. I believe you can figure out what makes the difference by debugging your code. ---------------------------------------------------------------------- LazaruX · 2017-02-01 21:44 Saving the layout of the forms created in code (as provided in the example MainIDE) works. Saving the layout of the forms I have added does not work. But the forms I have added can be docked. ---------------------------------------------------------------------- laggyluk · 2017-02-10 10:04 I'm just doing same thing and it works fine Your dockable forms creation must be handled in DockMasterCreateControl() like in that example for layout saving to work http://wiki.freepascal.org/Anchor_Docking#Procedure_to_create_all_othe r_forms_by_name ---------------------------------------------------------------------- LazaruX · 2017-02-10 10:06 How exactly? ---------------------------------------------------------------------- laggyluk · 2017-02-10 10:14 exactly like in MiniIDE example.. just look how it's creating SimpleForm and do similarly with your forms. ---------------------------------------------------------------------- LazaruX · 2017-02-10 10:18 In the MiniIDE sample it creates forms in code. I want to create my forms in the GUI. I just want somebody to tell me something like: File > New > Form > DockType > DkDock MainIDE.pas > Go to this method and do this and that. Now your form can be docked to the Main IDE. ---------------------------------------------------------------------- laggyluk · 2017-02-10 10:44 and yet you can examine/edit the SimpleForm in designer, how queer! remove your form from auto-create-forms in project settings and create it in DockMasterCreateControl good luck ---------------------------------------------------------------------- LazaruX · 2017-02-10 10:54 I have changed my code like this: Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i procedure TMainIDE.DockMasterCreateControl(Sender: TObject; aName: string; var  AControl: TControl; DoDisableAutoSizing: boolean);   procedure CreateForm(Caption: string; NewBounds: TRect);  begin    //AControl:=C reateSimpleForm(aName,Caption,NewBounds,DoDisableAutoSizing);   end; begin     AControl := Form1;end;   Form1 is the form I have created with File > New > Form. The form can be docked, but when I try to save the layout it is not saved. The layout of MainIDE is saved, but Form1 will not be saved as docked.