⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 dfwrarbaru.pas

📁 dfw控件组V0.62
💻 PAS
字号:
unit DFWRarBarU;

interface

uses
  Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
  StdCtrls, Spin, DFWRarBar;

type
  TForm1 = class(TForm)
    DFWRarBar1: TDFWRarBar;
    SpinEdit1: TSpinEdit;
    Label1: TLabel;
    CheckBox1: TCheckBox;
    Label2: TLabel;
    ComboBox1: TComboBox;
    procedure SpinEdit1Change(Sender: TObject);
    procedure CheckBox1Click(Sender: TObject);
    procedure ComboBox1Change(Sender: TObject);
    procedure FormCreate(Sender: TObject);
  private
    { Private-Deklarationen }
  public
    { Public-Deklarationen }
  end;

var
  Form1: TForm1;

implementation

{$R *.DFM}

procedure TForm1.SpinEdit1Change(Sender: TObject);
begin
     DFWRarBar1.Progress:=SpinEdit1.Value;
end;

procedure TForm1.CheckBox1Click(Sender: TObject);
begin
     DFWRarBar1.ShowPercentage:=checkbox1.Checked;
end;

procedure TForm1.ComboBox1Change(Sender: TObject);
begin
     case ComboBox1.Itemindex of
       0:DFWRarBar1.ColorScheme:=rcAcid;
       1:DFWRarBar1.ColorScheme:=rcLightBlue;
       2:DFWRarBar1.ColorScheme:=rcLightGreen;
       3:DFWRarBar1.ColorScheme:=rcPurpleBlue;
     end;
end;

procedure TForm1.FormCreate(Sender: TObject);
begin
     ComboBox1.itemindex:=3;
end;

end.



⌨️ 快捷键说明

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