Solved

component ProgressBar

Posted on 1998-05-08
8
396 Views
Last Modified: 2010-08-05
Urgent question!!!!!!!!!!!
when using the progressbar the progress is shown as
1 ore more blue boxes.
How can I change the blue boxes in one blue line
without the spaces in between.
0
Comment
Question by:petereilering
  • 2
  • 2
  • 2
  • +2
8 Comments
 
LVL 1

Author Comment

by:petereilering
Comment Utility
Edited text of question
0
 
LVL 2

Expert Comment

by:rene100
Comment Utility
hi petereilering

i think, you can't do this.
but look in the 'samples' register in the
component-palette, there sould by such a component
named 'gauge'

regards
rene100

0
 
LVL 4

Expert Comment

by:BoRiS
Comment Utility
petereilering

yes I must agree with rene100 use the gauge component under the samples component tab...or I have a component that is a 3D progress bar

Later
BoRiS
0
 
LVL 1

Author Comment

by:petereilering
Comment Utility
The gauge component hase to litlle help available in my
2.0 Delphi.
So I do not now how to use it.
0
6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

 
LVL 2

Expert Comment

by:rene100
Comment Utility
what do you want to do?
0
 
LVL 5

Expert Comment

by:JimBob091197
Comment Utility
TGuage is similar to TProgressBar.  You use it in the same way, except some of the properties have different names.

TProgressBar.Min = TGuage.MinValue
TProgressBar.Max = TGuage.MaxValue
TPrograssBar.Position = TGuage.Progress

Regards,
JB
0
 

Accepted Solution

by:
hyperion66 earned 50 total points
Comment Utility
Hello petereilering.

I thinks this is what you are looking for! this is a progress bar
and a smooth progress bar just like in Microsoft outlook. Just great a new Progress.pas file and paste the code below into that file and install the component. Hope this helps.


unit Progress;

interface

uses
  Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
  ComCtrls;

type
  TProgress = class(TProgressBar)
  private
    FNoBlocks:Boolean;
    { Private declarations }
    procedure SetNoBlocks(AValue:Boolean);
 protected
    { Protected declarations }
    procedure CreateParams(var Params:TCreateParams); override;
  public
    { Public declarations }
  published
    property NoBlocks:Boolean read FNoBlocks write SetNoBlocks;
     { Published declarations }
  end;

const
  PBS_NOBLOCKS = $91;

procedure Register;

implementation


procedure TProgress.CreateParams(var Params:TCreateParams);
begin
 inherited CreateParams(Params);
 if FNoBlocks then
 Params.Style := Params.Style OR PBS_NoBlocks;
end;

procedure TProgress.SetNoBlocks(AValue:Boolean);
begin
 FNoBlocks:=AValue;
 ReCreateWnd;
end;

procedure Register;
begin
  RegisterComponents('Samples', [TProgress]);
end;

end.
0
 

Expert Comment

by:hyperion66
Comment Utility
if you would like me to send you a progress bar source with no blue boxes just let me know.
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now