Hi,
Currently using URLScan.pas for detecting URLs.
However, sometimes i load documents and the generated links have invalid jumpids(The returned itemno for the id is -1).
I am sorry that i can not share the document it occurs in, or source atm.
However, after each of the url function(except for the IsEMail, IsUrl, etc) i use Reformat. So i am a bit confused.
And what is the most recent version of the URLScan.pas?
Delphi XE on windows 7.
i'll try to create something for reproduction, but maybe someone can already answer the last question or give me some hints.
Greetings
Memnarch
URLScan produces invalid JumpIDs
-
- Site Admin
- Posts: 17557
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
JumpIDs are generated in the following cases:
- in TRichView - always
- in readonly TRichViewEdit, if rvoNoReadOnlyJumps is excluded from EditorOptions
- when Ctrl is pressed in TRichViewEdit, until it is released, if rvoCtrlJumps is included in EditorOptions.
As you can see, TRichViewEdit does not maintain JumpIDs, it generates them only when it is in a hypertext mode.
They are useful only in OnJump in OnRVMouseMove events.
- in TRichView - always
- in readonly TRichViewEdit, if rvoNoReadOnlyJumps is excluded from EditorOptions
- when Ctrl is pressed in TRichViewEdit, until it is released, if rvoCtrlJumps is included in EditorOptions.
As you can see, TRichViewEdit does not maintain JumpIDs, it generates them only when it is in a hypertext mode.
They are useful only in OnJump in OnRVMouseMove events.
I found the source of the problem and continuing here:
http://www.trichview.com/forums/viewtop ... 5975#25975
as i don't think it is related to URLSCan.pas directly.
Greetings
Memnarch
http://www.trichview.com/forums/viewtop ... 5975#25975
as i don't think it is related to URLSCan.pas directly.
Greetings
Memnarch
-
- Site Admin
- Posts: 17557
- Joined: Sat Aug 27, 2005 10:28 am
- Contact: