TPairSplitter: what changed
Revision 1 to 2. Removed lines have a minus sign; added lines have a plus sign.
| Old | New | Line | |
|---|---|---|---|
| 1 | 1 | A TPairSplitter  is a component that can be placed on a panel or form and provides two [[TPairSplitterSide]] sub-components. | |
| 2 | 2 | ||
| 3 | 3 | In the example below, a [[TPaintBox]] item is dropped onto each TPairSplitterSide. | |
| 4 | 4 | ||
| 5 | - | ||
| 6 | - | ||
| 7 | - | ||
| 8 | - | ||
| 5 | + |  | |
| 9 | 6 | ||
| 10 | 7 | ``` pascal | |
| 11 | 8 | unit Unit1; | |
| 12 | 9 | ||
| 13 | 10 | {$mode objfpc}{$H+} | |
| 14 | 11 | ||
| 15 | 12 | interface | |
| 16 | 13 | ||
| 17 | 14 | uses | |
| 18 | 15 | Classes, SysUtils, Forms, | |
| 19 | 16 | Controls, PairSplitter, ExtCtrls; | |
| 20 | 17 | ||
| 21 | 18 | type | |
| 22 | 19 | TForm1 = class(TForm) | |
| 23 | 20 | PaintBox1: TPaintBox; | |
| 24 | 21 | PaintBox2: TPaintBox; | |
| 25 | 22 | PairSplitter1: TPairSplitter; | |
| 26 | 23 | PairSplitterSide1: TPairSplitterSide; | |
| 27 | 24 | PairSplitterSide2: TPairSplitterSide; | |
| 28 | 25 | end; | |
| 29 | 26 | ||
| 30 | 27 | var | |
| 31 | 28 | Form1: TForm1; | |
| 32 | 29 | ||
| 33 | 30 | implementation | |
| 34 | 31 | ||
| 35 | 32 | {$R *.lfm} | |
| 36 | 33 | ||
| 37 | 34 | { TForm1 } | |
| 38 | 35 | ||
| 39 | 36 | end. | |
| 40 | 37 | ``` | |
| 41 | 38 | ||
| 42 | 39 | ## See also | |
| 43 | 40 | ||
| 44 | 41 | - [[doc:/lcl/pairsplitter/tpairsplitter.html|TPairSplitter doc]] | |
| 45 | 42 | - [[TSplitter]] | |
| 46 | 43 | ||
| 47 | 44 | --- | |
| 48 | 45 | *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).* |
