mirror of
https://github.com/CloudDelphi/Router4Delphi.git
synced 2025-12-19 08:43:43 +01:00
Update Demo
This commit is contained in:
parent
e05c0c49f9
commit
096065342c
@ -23,5 +23,11 @@ object PageIndex: TPageIndex
|
|||||||
TextSettings.HorzAlign = Center
|
TextSettings.HorzAlign = Center
|
||||||
Text = 'Home'
|
Text = 'Home'
|
||||||
end
|
end
|
||||||
|
object Button1: TButton
|
||||||
|
Position.X = 424.000000000000000000
|
||||||
|
Position.Y = 408.000000000000000000
|
||||||
|
TabOrder = 0
|
||||||
|
Text = 'Button1'
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
@ -20,6 +20,7 @@ type
|
|||||||
TPageIndex = class(TForm, iRouter4DComponent)
|
TPageIndex = class(TForm, iRouter4DComponent)
|
||||||
Layout1: TLayout;
|
Layout1: TLayout;
|
||||||
Label1: TLabel;
|
Label1: TLabel;
|
||||||
|
Button1: TButton;
|
||||||
private
|
private
|
||||||
{ Private declarations }
|
{ Private declarations }
|
||||||
public
|
public
|
||||||
@ -35,6 +36,7 @@ implementation
|
|||||||
|
|
||||||
uses
|
uses
|
||||||
Router4D,
|
Router4D,
|
||||||
|
Router4D.History,
|
||||||
Router4DelphiDemo.Views.Layouts.Main;
|
Router4DelphiDemo.Views.Layouts.Main;
|
||||||
|
|
||||||
{$R *.fmx}
|
{$R *.fmx}
|
||||||
|
|||||||
@ -30,9 +30,16 @@ uses
|
|||||||
{$R *.fmx}
|
{$R *.fmx}
|
||||||
|
|
||||||
procedure TViewPrincipal.Animation(aLayout: TFMXObject);
|
procedure TViewPrincipal.Animation(aLayout: TFMXObject);
|
||||||
|
var
|
||||||
|
aHeigth : Single;
|
||||||
begin
|
begin
|
||||||
|
aHeigth := TLayout(aLayout).Height;
|
||||||
|
TLayout(aLayout).Height := 0;
|
||||||
|
TLayout(aLayout).Align := TAlignLayout.None;
|
||||||
|
TLayout(aLayout).AnimateFloat('Height', aHeigth, 0.9);
|
||||||
TLayout(aLayout).Opacity := 0;
|
TLayout(aLayout).Opacity := 0;
|
||||||
TLayout(aLayout).AnimateFloat('Opacity', 1, 0.2);
|
TLayout(aLayout).AnimateFloat('Opacity', 1, 0.9);
|
||||||
|
//TLayout(aLayout).Align := TAlignLayout.Client;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TViewPrincipal.FormCreate(Sender: TObject);
|
procedure TViewPrincipal.FormCreate(Sender: TObject);
|
||||||
|
|||||||
@ -63,6 +63,17 @@ object PageCadastros: TPageCadastros
|
|||||||
Size.Height = 25.000000000000000000
|
Size.Height = 25.000000000000000000
|
||||||
Size.PlatformDefault = False
|
Size.PlatformDefault = False
|
||||||
end
|
end
|
||||||
|
object Label2: TLabel
|
||||||
|
StyledSettings = [Family, Style, FontColor]
|
||||||
|
Position.X = 128.000000000000000000
|
||||||
|
Position.Y = 80.000000000000000000
|
||||||
|
Size.Width = 201.000000000000000000
|
||||||
|
Size.Height = 49.000000000000000000
|
||||||
|
Size.PlatformDefault = False
|
||||||
|
TextSettings.Font.Size = 18.000000000000000000
|
||||||
|
Text = 'Label do Leandro'
|
||||||
|
TabOrder = 0
|
||||||
|
end
|
||||||
end
|
end
|
||||||
object Layout4: TLayout
|
object Layout4: TLayout
|
||||||
Align = Top
|
Align = Top
|
||||||
|
|||||||
@ -29,6 +29,7 @@ type
|
|||||||
Layout3: TLayout;
|
Layout3: TLayout;
|
||||||
Rectangle1: TRectangle;
|
Rectangle1: TRectangle;
|
||||||
Layout4: TLayout;
|
Layout4: TLayout;
|
||||||
|
Label2: TLabel;
|
||||||
procedure Button1Click(Sender: TObject);
|
procedure Button1Click(Sender: TObject);
|
||||||
procedure FormCreate(Sender: TObject);
|
procedure FormCreate(Sender: TObject);
|
||||||
private
|
private
|
||||||
@ -72,6 +73,9 @@ begin
|
|||||||
if (aValue.PropString <> '') and (aValue.Key = 'TelaCadastro') then
|
if (aValue.PropString <> '') and (aValue.Key = 'TelaCadastro') then
|
||||||
Label1.Text := aValue.PropString;
|
Label1.Text := aValue.PropString;
|
||||||
|
|
||||||
|
if (aValue.PropInteger <> 1) then
|
||||||
|
Label2.Visible := False;
|
||||||
|
|
||||||
aValue.Free;
|
aValue.Free;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
|||||||
@ -52,6 +52,7 @@ begin
|
|||||||
.PropString(
|
.PropString(
|
||||||
'Olá Router4D, Seu Cadastro Recebeu as Props'
|
'Olá Router4D, Seu Cadastro Recebeu as Props'
|
||||||
)
|
)
|
||||||
|
.PropInteger(0)
|
||||||
.Key('TelaCadastro')
|
.Key('TelaCadastro')
|
||||||
);
|
);
|
||||||
end;
|
end;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user