CPB Mailing List

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

CGauge -> ProgressBar advanced



I have been using a progress bar inside of a status bar in many of my
programs. That is, until I stumbled upon the TCGauge component (in Samples
tab). I have never tried many of these components, since there isn't much
documentation for them in BCB. Anyway, it looks much better than the regular
progress bar.

If anyone's interested, I sniped some code I used to do this (below). I was
curious, though, why components like this didn't get any mention by Borland?
And if they did, where is it?

joe
...........
// on form create
  ProgressBar = new TCGauge(StatusBar);
  ProgressBar->Parent = StatusBar;
  ProgressBar->Visible = false;
  ProgressBar->Left = 2;
  ProgressBar->Top = 2;
  ProgressBar->Height = StatusBar->Height - 4;
  ProgressBar->Width = StatusBar->Panels->Items[0]->Width - 4;
  ProgressBar->ForeColor = clBlue;
  ProgressBar->BackColor = clBtnFace;
  ProgressBar->MinValue = 0;
  ProgressBar->MaxValue = 100;
  ProgressBar->Progress = 0;

// in header file
  TCGauge *ProgressBar;

...........




W Komornicki's Home Page | Main Index | Thread Index