Difference between revisions of "TPairSplitter"
From Lazarus wiki
Jump to navigationJump to searchLine 1: | Line 1: | ||
A [[TPairSplitter]] [[image:tpairsplitter.png]] is a component that can be placed on a panel or form and provides two [[TPairSplitterSide]] sub-components. | A [[TPairSplitter]] [[image:tpairsplitter.png]] is a component that can be placed on a panel or form and provides two [[TPairSplitterSide]] sub-components. | ||
− | [[image:component | + | In the example below, a [[TPaintBox]] item is dropped onto each TPairSplitterSide. |
+ | |||
+ | [[image:component-TPairSplitter.png]] | ||
<syntaxhighlight> | <syntaxhighlight> |
Revision as of 17:09, 24 July 2016
A TPairSplitter is a component that can be placed on a panel or form and provides two TPairSplitterSide sub-components.
In the example below, a TPaintBox item is dropped onto each TPairSplitterSide.
unit Unit1;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, Forms,
Controls, PairSplitter, ExtCtrls;
type
TForm1 = class(TForm)
PaintBox1: TPaintBox;
PaintBox2: TPaintBox;
PairSplitter1: TPairSplitter;
PairSplitterSide1: TPairSplitterSide;
PairSplitterSide2: TPairSplitterSide;
end;
var
Form1: TForm1;
implementation
{$R *.lfm}
{ TForm1 }
end.
see also