Progressbar加上色彩。



    const

    {$EXTERNALSYM PBS_MARQUEE}

    PBS_MARQUEE = 08;

    var

      Form1: TForm1;

    implementation

    {$R *.dfm}

    uses

    CommCtrl;

    procedure TForm1.Button1Click(Sender: TObject);

    begin

      // Set the Background color to teal

      Progressbar1.Brush.Color := clTeal;

      // Set bar color to yellow

      SendMessage(ProgressBar1.Handle, PBM_SETBARCOLOR, 0, clYellow);

    end;

相关文章:

  • 2021-04-24
  • 2022-01-07
  • 2021-05-29
  • 2022-01-02
  • 2021-08-26
  • 2021-09-23
  • 2021-11-15
  • 2022-01-14
猜你喜欢
  • 2021-10-12
  • 2021-09-02
  • 2021-07-10
  • 2022-12-23
  • 2021-12-27
  • 2022-12-23
相关资源
相似解决方案