summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorGraeme Geldenhuys <graeme@mastermaths.co.za>2012-07-31 10:26:45 +0100
committerGraeme Geldenhuys <graeme@mastermaths.co.za>2012-07-31 10:26:45 +0100
commit9ad66f025cc15a7a47b0fc0055293dde35b1400c (patch)
tree510e3e51e5af93628210dddfea4f4d765cadf985 /src/gui
parent0e32a26c5070af35905bc5ad8b7dcdb448a08c2e (diff)
downloadfpGUI-9ad66f025cc15a7a47b0fc0055293dde35b1400c.tar.xz
replaces tab character indentation with 2-space indentation.
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/fpg_progressbar.pas16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/gui/fpg_progressbar.pas b/src/gui/fpg_progressbar.pas
index e106577c..7ec45cc0 100644
--- a/src/gui/fpg_progressbar.pas
+++ b/src/gui/fpg_progressbar.pas
@@ -1,7 +1,7 @@
{
fpGUI - Free Pascal GUI Toolkit
- Copyright (C) 2006 - 2010 See the file AUTHORS.txt, included in this
+ Copyright (C) 2006 - 2012 See the file AUTHORS.txt, included in this
distribution, for details of the copyright.
See the file COPYING.modifiedLGPL, included in this distribution,
@@ -93,7 +93,7 @@ begin
FPosition := AValue;
FMax := AValue;
- RePaint;
+ RePaint;
end;
procedure TfpgCustomProgressBar.SetMin(const AValue: longint);
@@ -108,7 +108,7 @@ begin
FMax := AValue+1;
FMin := AValue;
- RePaint;
+ RePaint;
end;
procedure TfpgCustomProgressBar.SetPBPosition(const AValue: longint);
@@ -124,7 +124,7 @@ begin
else
FPosition := AValue;
- RePaint;
+ RePaint;
end;
procedure TfpgCustomProgressBar.SetShowCaption(const AValue: boolean);
@@ -164,7 +164,7 @@ begin
// calculate position
diff := Max - Min; // diff..
- aPos := Position - Min; // absolute position
+ aPos := Position - Min; // absolute position
percent := round(((100 / diff) * aPos));
txt := IntToStr(percent) + '%';
pos := round(percent * (Width-2) / 100);
@@ -193,11 +193,11 @@ begin
// paint percentage if required
if FShowCaption then
begin
- x := (Width - FFont.TextWidth(txt)) div 2;
- y := (Height - FFont.Height) div 2;
+ x := (Width - FFont.TextWidth(txt)) div 2;
+ y := (Height - FFont.Height) div 2;
Canvas.SetTextColor(TextColor);
Canvas.Font := FFont;
- Canvas.DrawString(x, y, txt);
+ Canvas.DrawString(x, y, txt);
end;
end;