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 49 50 51 52 53 54 55 56
|
unit UnitFlowLayout;
interface
uses
System.SysUtils, System.Types, System.UITypes, System.Classes, System.Variants,
FMX.Types, FMX.Controls, FMX.Forms, FMX.Graphics, FMX.Dialogs, FMX.StdCtrls,
FMX.Objects, FMX.Layouts, FMX.Controls.Presentation;
type
TForm8 = class(TForm)
FlowLayout1: TFlowLayout;
BtnLayout1: TButton;
BtnLayout2: TButton;
BtnLayout3: TButton;
Layout4: TLayout;
Rectangle1: TRectangle;
Label1: TLabel;
Layout5: TLayout;
Rectangle2: TRectangle;
Label2: TLabel;
Layout6: TLayout;
Rectangle3: TRectangle;
Label3: TLabel;
procedure BtnLayout1Click(Sender: TObject);
procedure BtnLayout2Click(Sender: TObject);
private
{ Déclarations privées }
public
{ Déclarations publiques }
end;
var
Form8: TForm8;
implementation
{$R *.fmx}
procedure TForm8.BtnLayout1Click(Sender: TObject);
begin
Flowlayout1.BeginUpdate;
Layout4.Visible:=not Layout4.Visible;
Flowlayout1.EndUpdate;
end;
procedure TForm8.BtnLayout2Click(Sender: TObject);
begin
Flowlayout1.BeginUpdate;
Layout5.Visible:=not Layout5.Visible;
Flowlayout1.EndUpdate;
end;
end. |
Partager