blob: cc71f2f2393294ebcec622ea258359f826437ea4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
unit gui_miglayout;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, gui_panel, gfxbase;
type
{ TfpgLayoutPanel }
TfpgLayoutPanel = class(TfpgBevel)
protected
procedure HandleResize(awidth, aheight: TfpgCoord); override;
public
constructor Create(AOwner: TComponent); override;
procedure Add(AComponent: TComponent; AConstraint: string);
end;
implementation
uses
fpgfx;
{ TfpgLayoutPanel }
procedure TfpgLayoutPanel.HandleResize(awidth, aheight: TfpgCoord);
begin
writeln('HandleResize');
inherited HandleResize(awidth, aheight);
end;
constructor TfpgLayoutPanel.Create(AOwner: TComponent);
begin
inherited Create(AOwner);
Align := alClient;
Shape := bsSpacer;
end;
procedure TfpgLayoutPanel.Add(AComponent: TComponent; AConstraint: string);
begin
//
end;
end.
|