stylesform.pas

来自「delphi6 programming example」· PAS 代码 · 共 44 行

PAS
44
字号
unit StylesForm;interfaceuses  SysUtils, Types, Classes, Variants, QGraphics, QControls, QForms, QDialogs,  QStdCtrls, QStyle, QComCtrls, QMenus, QTypes;type  TForm1 = class(TForm)    Button1: TButton;    ListBox1: TListBox;    CheckBox1: TCheckBox;    ComboBox1: TComboBox;    ScrollBar1: TScrollBar;    TrackBar1: TTrackBar;    Edit1: TEdit;    GroupBox1: TGroupBox;    RadioButton1: TRadioButton;    RadioButton2: TRadioButton;    TreeView1: TTreeView;    ListBox2: TListBox;    procedure ListBox1DblClick(Sender: TObject);  private    { Private declarations }  public    { Public declarations }  end;var  Form1: TForm1;implementation{$R *.xfm}procedure TForm1.ListBox1DblClick(Sender: TObject);begin  Application.Style.DefaultStyle :=    TDefaultStyle (ListBox1.ItemIndex);end;end.

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?