View Issue Details

IDProjectCategoryView StatusLast Update
0002180JEDI VCL04 Feature Requestpublic2005-08-28 09:39
ReporterNanotonneAssigned To 
PrioritynormalSeverityfeatureReproducibilityalways
Status closedResolutionopen 
Product Version3.00 BETA 2 
Target VersionFixed in Version 
Summary0002180: improvement of feature of AutoURLDetect for JvRichedit
Descriptionthe AutoURLDetect work with UNC "\\server1\dir1\file1.ext" but not with drive letter "e:\dir1\file1.ext" for example. why not AutoURLDetect too with a:\ .. z: (char case independent) ?
i suggest to add property AutoURLDetectType (a set of type) to specify what type of URL should be hyperlinked if AutoURLDetect=true

For example :
type URLDetectType = (Autohttp, Autofile, Automailto, Autoftp, https, Autogopher, Autonntp, Autoprospero, Autotelnet, Autonews, Autowais, Autooutlook, AutoUNC, AutoDriveletter, Autohostname, AutoIP, AutoOther) ;
AutoURLDetectType = set of URLDetectType;
// ** description of new set :
- AutoUNC for URL as "\\server1\dir1\...\file1;
- AutoDriveletter for URL as i:\dir1\...\file1:
- Autohostname for URL as : sourceforge.net, microsoft.com, www.free.fr, wwww2.myhome.org, home1.myweb.org;
- AutoIP for 127.0.0.1 (ipv4 and ipv6);
- AutoOther for other URL , example : "ed2k://" "emule://" "nativeplayer://", ...

and why not add a special event OnURLTypedetected : procedure (sender,strURL, URLDetectType) if one this set is detected to best easy manage event with type URL detected.

add - defautURLEvent : boolean for default open URL (explorer, ieplorer or mozilla for example : depend of type detected : file or web site) or is managed only by OnURLTypedetected event.
TagsNo tags attached.

Activities

user72

2004-10-05 00:19

  ~0005304

See this MSDN help topic as to why that is a problem (will wrap):

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/commctls/richedit/richeditcontrols/richeditcontrolreference/richeditmessages/em_autourldetect.asp

Nanotonne

2004-10-06 11:51

reporter   ~0005326

Last edited: 2004-10-06 22:50

okay, if only the autoURL is controled by the "dll control" and remove other linked text (if i have good understand on msdn microsoft link below), then it's need to control ONLY self the URL detection by programming (jvcl unit url detection ?) or search a other solution to extend this feature/change this limitation ...

modifié le : 10-06-04 22:50

user72

2004-10-07 05:48

  ~0005335

No, it's the other way around: if you want to make your own links in the text, you must insert CFE_LINKs "by hand" and then you will also have to handle all the other protocols normally handled by the richedit (if AutoURLDetect = true).

Nanotonne

2004-10-07 10:17

reporter   ~0005337

i have understand, sorry, it's i would like to say previously when i have wrote "it's need to control ONLY self the URL detection by programming", but my english is bad.

I'm going to create a function to detect and change manually URL in jvrichedit and i submit result code here, but i need too help because i'm not very good to modify/adapte/create a component in delphi.... if you are okay ! .... :-)

I need test how microsoft work and detect URL in richedit when AutoURLDetect = true to clone exactly and improve after this feature, need time for me...

remkobonte

2004-10-07 11:28

developer   ~0005341

Take a look at http://www.delphipages.com/result.cfm?ID=511, it has such a feature.

Look at the procedures TCustomRichEdit98.DetectURLs in unit RichEdit2.pas.

obones

2005-05-20 03:06

administrator   ~0007264

What should we do about this?

obones

2005-08-28 09:39

administrator   ~0007875

No answers, closing the issue.

Issue History

Date Modified Username Field Change
2004-09-28 04:57 Nanotonne New Issue
2004-10-05 00:19 user72 Note Added: 0005304
2004-10-05 00:19 user72 Status new => acknowledged
2004-10-06 11:51 Nanotonne Note Added: 0005326
2004-10-06 22:50 Nanotonne Note Edited: 0005326
2004-10-07 05:48 user72 Note Added: 0005335
2004-10-07 10:17 Nanotonne Note Added: 0005337
2004-10-07 11:28 remkobonte Note Added: 0005341
2005-05-20 03:06 obones Note Added: 0007264
2005-05-20 03:06 obones Status acknowledged => feedback
2005-08-28 09:39 obones Status feedback => closed
2005-08-28 09:39 obones Note Added: 0007875