diff options
author | Graeme Geldenhuys <graeme@mastermaths.co.za> | 2010-08-11 14:37:28 +0200 |
---|---|---|
committer | Graeme Geldenhuys <graeme@mastermaths.co.za> | 2010-08-11 14:37:28 +0200 |
commit | ea7a1b1c1ebc37a6d1ae9c15b1239200f2dbb2ee (patch) | |
tree | f55e1d75a59e0da43a552a6ac3baa0bd0498a297 /docview/src | |
parent | f24d9240a1a84eb224b03c76d56610f56a329f6e (diff) | |
download | fpGUI-ea7a1b1c1ebc37a6d1ae9c15b1239200f2dbb2ee.tar.xz |
docview: improved handling of external links.
When a external link is clicked, display a user friendly message
that support doesn't exist yet.
Diffstat (limited to 'docview/src')
-rw-r--r-- | docview/src/frm_main.pas | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/docview/src/frm_main.pas b/docview/src/frm_main.pas index 04873d1f..9e853f35 100644 --- a/docview/src/frm_main.pas +++ b/docview/src/frm_main.pas @@ -270,7 +270,11 @@ var lURL: TfpgString; begin // TODO: process other types of links (external, application etc...) too! - if pos('url', Link) > 0 then + if pos('external', Link) > 0 then + begin + TfpgMessageDialog.Warning('', 'External links are not supported in DocView yet. Please try again with a later build.') + end + else if pos('url', Link) > 0 then begin // we have a external URL of some kind // format is always: 'url "<uri>"' |