|
@@ -12,12 +12,12 @@ type
|
|
|
{ TDemoForm1 }
|
|
|
|
|
|
TDemoForm1 = class(TFresnelForm)
|
|
|
+ Body1: TBody;
|
|
|
+ Div1: TDiv;
|
|
|
+ Label1: TLabel;
|
|
|
procedure DemoForm1Create(Sender: TObject);
|
|
|
private
|
|
|
public
|
|
|
- Body: TBody;
|
|
|
- Div1: TDiv;
|
|
|
- Label1: TLabel;
|
|
|
end;
|
|
|
|
|
|
var
|
|
@@ -31,27 +31,7 @@ implementation
|
|
|
|
|
|
procedure TDemoForm1.DemoForm1Create(Sender: TObject);
|
|
|
begin
|
|
|
- Body:=TBody.Create(Self);
|
|
|
- with Body do begin
|
|
|
- Name:='Body';
|
|
|
- Parent:=Self;
|
|
|
- end;
|
|
|
-
|
|
|
- Div1:=TDiv.Create(Self);
|
|
|
- with Div1 do begin
|
|
|
- Name:='Div1';
|
|
|
- Parent:=Body;
|
|
|
- Style:='height: 100px; padding-left: 5px;';
|
|
|
- end;
|
|
|
-
|
|
|
- Label1:=TLabel.Create(Self);
|
|
|
- with Label1 do begin
|
|
|
- Name:='Label1';
|
|
|
- Caption:='Hello';
|
|
|
- Parent:=Div1;
|
|
|
- end;
|
|
|
|
|
|
- Stylesheet.Text:='div { padding: 2px; border: 3px solid blue; margin: 6px; unknown: none; right: bla; }';
|
|
|
end;
|
|
|
|
|
|
end.
|