Sign in Join
Wiki copytemporary

TPairSplitter: what changed

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

Title: TPairSplitter

OldNewLine
1+A TPairSplitter ![](/wiki-images/9/9c/Tpairsplitter.png) is a component that can be placed on a panel or form and provides two [[TPairSplitterSide]] sub-components.
2+
3+In the example below, a [[TPaintBox]] item is dropped onto each TPairSplitterSide.
4+
5+<figure>
6+<img src="component-TPairSplitter.png" title="component-TPairSplitter.png" />
7+<figcaption>component-TPairSplitter.png</figcaption>
8+</figure>
9+
10+``` pascal
11+unit Unit1;
12+
13+{$mode objfpc}{$H+}
14+
15+interface
16+
17+uses
18+ Classes, SysUtils, Forms,
19+ Controls, PairSplitter, ExtCtrls;
20+
21+type
22+ TForm1 = class(TForm)
23+ PaintBox1: TPaintBox;
24+ PaintBox2: TPaintBox;
25+ PairSplitter1: TPairSplitter;
26+ PairSplitterSide1: TPairSplitterSide;
27+ PairSplitterSide2: TPairSplitterSide;
28+ end;
29+
30+var
31+ Form1: TForm1;
32+
33+implementation
34+
35+{$R *.lfm}
36+
37+{ TForm1 }
38+
39+end.
40+```
41+
42+## See also
43+
44+- [[doc:/lcl/pairsplitter/tpairsplitter.html|TPairSplitter doc]]
45+- [[TSplitter]]
46+
47+---
48+*From the Free Pascal wiki, page "TPairSplitter", as it stood on 2020-03-01 after a change by Trev, 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).*

Back to history