summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorgraemeg <graemeg@ae50a9b5-8222-0410-bf8d-8a13f76226bf>2008-04-01 15:01:43 +0000
committergraemeg <graemeg@ae50a9b5-8222-0410-bf8d-8a13f76226bf>2008-04-01 15:01:43 +0000
commit7dc2322da79601ecdcc22d05552a2217c5172229 (patch)
treed25bd7125512bc95f10afd4817f62192efb309bc /src
parent30389d52cc58fe44394695b551fb450f6945a164 (diff)
downloadfpGUI-7dc2322da79601ecdcc22d05552a2217c5172229.tar.xz
* If OnClick is assigned to HyperLink then it overrides the HyperLink link. Now it can be used as a Hot label as well.
Diffstat (limited to 'src')
-rw-r--r--src/gui/gui_hyperlink.pas4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gui/gui_hyperlink.pas b/src/gui/gui_hyperlink.pas
index 3295ff3f..ee424a53 100644
--- a/src/gui/gui_hyperlink.pas
+++ b/src/gui/gui_hyperlink.pas
@@ -57,6 +57,7 @@ type
property Text;
property TextColor;
property URL: TfpgString read FUrl write SetURL;
+ property OnClick;
end;
@@ -128,7 +129,8 @@ end;
procedure TfpgHyperlink.HandleLMouseDown(x, y: integer; shiftstate: TShiftState);
begin
inherited HandleLMouseDown(x, y, shiftstate);
- GoHyperlink;
+ if not Assigned(OnClick) then
+ GoHyperlink;
end;