Solved

component ProgressBar

Posted on 1998-05-08
8
403 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
ID: 1343705
Edited text of question
0
 
LVL 2

Expert Comment

by:rene100
ID: 1343706
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
ID: 1343707
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
ID: 1343708
The gauge component hase to litlle help available in my
2.0 Delphi.
So I do not now how to use it.
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 2

Expert Comment

by:rene100
ID: 1343709
what do you want to do?
0
 
LVL 5

Expert Comment

by:JimBob091197
ID: 1343710
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
ID: 1343711
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
ID: 1343712
if you would like me to send you a progress bar source with no blue boxes just let me know.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …

911 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

20 Experts available now in Live!

Get 1:1 Help Now