diff options
author | graemeg <graemeg@ae50a9b5-8222-0410-bf8d-8a13f76226bf> | 2008-04-01 15:01:43 +0000 |
---|---|---|
committer | graemeg <graemeg@ae50a9b5-8222-0410-bf8d-8a13f76226bf> | 2008-04-01 15:01:43 +0000 |
commit | 7dc2322da79601ecdcc22d05552a2217c5172229 (patch) | |
tree | d25bd7125512bc95f10afd4817f62192efb309bc | |
parent | 30389d52cc58fe44394695b551fb450f6945a164 (diff) | |
download | fpGUI-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.
-rw-r--r-- | src/gui/gui_hyperlink.pas | 4 |
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; |