mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-07-24 17:16:11 +02:00
48 lines
704 B
ObjectPascal
48 lines
704 B
ObjectPascal
unit main;
|
|
|
|
{$mode objfpc}{$H+}
|
|
|
|
interface
|
|
|
|
uses
|
|
SysUtils, Classes,
|
|
Forms, Controls, ComCtrls,
|
|
frmPie, frmPolar;
|
|
|
|
type
|
|
|
|
{ TMainForm }
|
|
|
|
TMainForm = class(TForm)
|
|
PageControl: TPageControl;
|
|
tsPolar: TTabSheet;
|
|
tsPie: TTabSheet;
|
|
procedure FormCreate(Sender: TObject);
|
|
private
|
|
PieFrame: TPieFrame;
|
|
PolarFrame: TPolarFrame;
|
|
end;
|
|
|
|
var
|
|
MainForm: TMainForm;
|
|
|
|
implementation
|
|
|
|
{$R *.lfm}
|
|
|
|
{ TMainForm }
|
|
|
|
procedure TMainForm.FormCreate(Sender: TObject);
|
|
begin
|
|
PieFrame := TPieFrame.Create(Self);
|
|
PieFrame.Parent := tsPie;
|
|
PieFrame.Align := alClient;
|
|
|
|
PolarFrame := TPolarFrame.Create(Self);
|
|
PolarFrame.Parent := tsPolar;
|
|
PolarFrame.Align := alClient;
|
|
end;
|
|
|
|
end.
|
|
|