Delphi 官方styleBook大全使用


本文整理自网络,侵删。

 
unit Unit1;

interface

uses
  System.SysUtils, System.Types, System.UITypes, System.Classes, System.Variants,
  FMX.Types, FMX.Controls, FMX.Forms, FMX.Graphics, FMX.Dialogs,
  FMX.Controls.Presentation, FMX.StdCtrls, FMX.Edit;

type
  TForm1 = class(TForm)
    JetStyleBook: TStyleBook;
    Button1: TButton;
    SterlingStyleBook: TStyleBook;
    EmeraldDarkStyleBook: TStyleBook;
    VaporStyleBook: TStyleBook;
    EmeraldCrystalStyleBook: TStyleBook;
    RadiantStyleBook: TStyleBook;
    StyleBook1: TStyleBook;
    CopperDark: TStyleBook;
    CopperFMX: TStyleBook;
    CoralCrystal: TStyleBook;
    CoralDark: TStyleBook;
    Diamond: TStyleBook;
    Calypso: TStyleBook;
    MaterialOxfordBlue: TStyleBook;
    PuertoRico: TStyleBook;
    Stellar: TStyleBook;
    WedgewoodLight: TStyleBook;
    Timer1: TTimer;
    Switch1: TSwitch;
    Edit1: TEdit;
    procedure FormCreate(Sender: TObject);
    procedure Timer1Timer(Sender: TObject);
    procedure FormDestroy(Sender: TObject);
  private
    { Private declarations }
    k:integer;
    j:integer;
    List: TList;
  public
    { Public declarations }
  end;

var
  Form1: TForm1;

implementation

{$R *.fmx}

procedure TForm1.FormCreate(Sender: TObject);
var
   i:integer;
begin
  List := TList.Create;
  j:=self.ComponentCount;
  for i := 0 to j-1 do
  begin
    if self.Components[i] is TStyleBook then
       List.Add(self.Components[i]);
  end;
  i:=0;
  k:=0;
  j:=List.Count;
end;

procedure TForm1.FormDestroy(Sender: TObject);
begin
  List.Free;
end;

procedure TForm1.Timer1Timer(Sender: TObject);
begin
  if k>=j then k:=0;
  self.StyleBook:=TStyleBook(List[k]);
  self.Caption:= TStyleBook(List[k]).Name;
  k:=k+1;
end;

end.

相关阅读 >>

Delphi读取文本文件的最后一行

Delphi 在richedit中插入gif图片的方法

Delphi unigui从数据表里下载流文件

Delphi2010安装twordapplication控件

Delphi shellexecute openurl 的跨平台实现

Delphi执行cmd命令

Delphi 转换swf到exe

Delphi 为当前窗口客户区捉图: getformimage

Delphi idhttp 获取链接连通状态

Delphi webbrowser 无法调用当前浏览器的版本

更多相关阅读请进入《Delphi》频道 >>



打赏

取消

感谢您的支持,我会继续努力的!

扫码支持
扫码打赏,您说多少就多少

打开支付宝扫一扫,即可进行扫码打赏哦

分享从这里开始,精彩与您同在

评论

管理员已关闭评论功能...