summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGraeme Geldenhuys <graeme@mastermaths.co.za>2011-05-10 12:12:46 +0200
committerGraeme Geldenhuys <graeme@mastermaths.co.za>2011-05-10 12:12:46 +0200
commitdead40c054020f99a2a80ba3bc92cb4f5ad599ec (patch)
treee9dde710b5267302450a7719f6761a133f40dfb2 /src
parent408e94406dd613c92a890be64eb6e847f15e13a4 (diff)
downloadfpGUI-dead40c054020f99a2a80ba3bc92cb4f5ad599ec.tar.xz
Set correct default values for TfpgHyperlink widget
Some published properties did not have their default values set either.
Diffstat (limited to 'src')
-rw-r--r--src/gui/fpg_hyperlink.pas8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gui/fpg_hyperlink.pas b/src/gui/fpg_hyperlink.pas
index 44643f6c..3aca5f74 100644
--- a/src/gui/fpg_hyperlink.pas
+++ b/src/gui/fpg_hyperlink.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 - 2011 See the file AUTHORS.txt, included in this
distribution, for details of the copyright.
See the file COPYING.modifiedLGPL, included in this distribution,
@@ -56,11 +56,11 @@ type
property FontDesc;
property Height;
property Hint;
- property HotTrackColor: TfpgColor read fHotTrackColor write SetHotTrackColor;
+ property HotTrackColor: TfpgColor read FHotTrackColor write SetHotTrackColor default clBlue;
property HotTrackFont: TfpgString read fHTFont write SetHotTrackFont;
property Left;
property Text;
- property TextColor;
+ property TextColor default clBlue;
property ShowHint;
property URL: TfpgString read FUrl write SetURL;
property Top;
@@ -83,13 +83,13 @@ uses
constructor TfpgHyperlink.Create(AOwner: TComponent);
begin
inherited Create(AOwner);
+ Width := 120;
fHotTrackColor := clBlue;
TextColor := clBlue;
fUrl := 'http://opensoft.homeip.net/fpgui/';
Text := 'fpGUI website';
fHTFont := 'Arial-8:antialias=true:underline:bold';
FontDesc := 'Arial-8:antialias=true:underline';
- AutoSize := True;
end;
procedure TfpgHyperlink.SetURL(const Value: TfpgString);