Sign in Join
Wiki copytemporary

DockedFormEditor: what changed

Revision 1 to 2. Removed lines have a minus sign; added lines have a plus sign.

OldNewLine
11The DockedFormEditor is a package for the Lazarus IDE that docks a form next to source editor unit. This package is shipped with Lazarus version 2.1 upwards.
22
33## Why is it useful?
44
55If you don't like to search a form related to a unit, you can switch in the source editor pages. There you find the form docked as tab. Useful is a combination of packages **[[AnchorDockingDsgn]]** with **DockedFormEditor**, if you don't like the default "separate windows" look of the Lazarus IDE and prefer a single window.
66
77DockedFormEditor is the replacement and initially forked form Sparta_DockedFormEditor. If you used this package in the past, please switch to DockedFormEditor as all Sparta packages are now defined as deprecated and will be removed in a future version of Lazarus.
88
99## Installation
1010
1111- Uninstall any other docking managers (e.g., easydockmgrdsgn) and especially **Sparta_DockedFormEditor**!
1212- Install this package (and maybe **[[AnchorDockingDsgn]]**) per MainMenu -\> Package -\> Install/Uninstall Packages... -\> check the package **dockedformeditor**.
1313- Now recompile Lazarus IDE.
1414
1515## Layout
1616
1717After installation there are the design tabs docked next to source editor unit:
1818
19-<figure>
20-<img src="DockedLayout1.png" title="DockedLayout1.png" />
21-<figcaption>DockedLayout1.png</figcaption>
22-</figure>
19+![](/wiki-images/f/f6/DockedLayout1.png)
2320
2421## Pages
2522
2623### Code
2724
2825In the tab Code is the source editor, where you can implement the logic of your app.
2926
30-<figure>
31-<img src="DockedCode.png" title="DockedCode.png" />
32-<figcaption>DockedCode.png</figcaption>
33-</figure>
27+![](/wiki-images/7/70/DockedCode.png)
3428
3529### Form
3630
3731In the tab Form is the default form designer. Without this package it is a separate window.
3832
39-<figure>
40-<img src="DockedForm.png" title="DockedForm.png" />
41-<figcaption>DockedForm.png</figcaption>
42-</figure>
33+![](/wiki-images/6/65/DockedForm.png)
4334
4435### Anchors
4536
4637In the tab Anchors is a optional anchor designer. It's follows the WYSIWYG concept and your form reacts at runtime the same as at designtime. It can be used simultaneously with default Anchor Editor:
4738
4839- You can snap a control border or point with the grips and anchor it to a next or parent control.
4940- Sizing or positioning without anchoring are possible with mouse.
5041- With \<Ctrl\> + mouse you can change the border around a control.
5142- Constraints of a control are noted.
5243- Per popup menu a control can simply fixed on paranet or this fixing can be removed.
5344- All properties affected per Anchor Designer are shown in hint of control.
5445
55-<figure>
56-<img src="DockedAnchors.png" title="DockedAnchors.png" />
57-<figcaption>DockedAnchors.png</figcaption>
58-</figure>
46+![](/wiki-images/8/8a/DockedAnchors.png)
5947
6048## Options
6149
6250There are some options, found after package installation, under MainMenu -\> Tools -\> Options ... -\> Docked Form Editor. Next to some color definitions you find:
6351
6452- Tab position: defines the position of the tabs Code, Form, Anchors
6553- Force Refreshing At Sizing: if the resizing eats to much time, this option can be deactivated
6654- Capture Distance: this is the minimal distance in pixel to catch a control with mouse
6755- Automatically treat Align properties: the Anchor Designer can only work with Anchors, so Aligns are translated to Anchors when this option is activated
6856- Automatically treat BorderSpacing properties: allow Anchor designer to change all Borders (Around, Left, Top, Right, Bottom) to fit in
6957- Allow size changing: you can change the size of a control or you can really only set or remove Anchors and BorderSpacing
7058
7159## Limits
7260
7361- Tested on Windows7, 10, Linux Mint Cinnamon with GTK2, QT4, QT5.
7462
7563## Known Issues
7664
7765- When the designed form / frame is moved out of screen, there the form has no designer grid (dots).
7866- Qt5 shows own menu in form, this isn't shown in the anchor designer.
7967- Designer: mouse wheel to scroll content doesn't work - csDesigning is set and form doesn't get a LM_MOUSEWHEEL message.
8068- If main menu is visible, the height of the client area is wrong, see [Issue \#38701](https://bugs.freepascal.org/view.php?id=38701)
8169- Form size is limited to screen size
8270- AnchorDesigner: Child controls of some controls like TPageControl aren't visible
8371
8472## See also
8573
8674- [[Docking]] in general
8775- [[Anchor Docking]] in your application
8876
8977---
9078*From the Free Pascal wiki, page "DockedFormEditor", as it stood on 2023-04-09 after a change by Serbod, out of the wiki's dump of 2024-05-26. Copyright stays with the author who wrote it, according to the old wiki's [[Licensing]] page. If you have concerns about this material, [message the admin](/wiki-contact).*
9179Category: Lazarus IDE plugins

Back to history