This is a preliminary prerelease version of something that might evolve
into something that deserves the name Frequently Asked Questions.
Anybody is welcome to perpetuate and add to it as long as the questions
are of common interest and the answers are generally agreed upon on this list.
--------------------------------1. drag and drop-------------------------------
You can implement it yourself as long as only your own application is involved.
Native support is "on the feature request list".
--------------------------------2. hotlinks------------------------------------
You can implement it yourself by applying the textStyle "group" (in
addition to "blue" and "underlined") to the words you want the link on.
If the field is locked, you'll need a script like:
on mouseUp
if the clickText <> "" and the textStyle of the clickText contains
"group" then
hyper_text the clickChunk
else pass mouseUp
end mouseUp
If the field is unlocked, you'll need the same script in "on selectionChanged".
on hyper_text chunk
select chunk
put value(chunk) into txt
get the link[txt] of the target
if char 1 to 7 of it is "http://" then show_url it
end hyper_text
The links are stored in an array property of the field, so if you have
the text "MetaCard from MetaCard Corp. is the way to go." and want to
link "MetaCard Corp." to their web site, do:
set the textStyle of word 3 to 4 of fld x to "group,underline"
set the link["MetaCard Corp."] of fld "beschreibung_formatiert" to
"http://www.metacard.com"
You can edit the text as long as you leave the link string intact and unique.
Native support is "on the feature request list".
--------------------------------3. open browser--------------------------------
On Windows systems the path to the current browser is in the registry.
The proper way to find it is:
on show_url theUrl
put queryRegistry("HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.htm\") into typ
if typ="" then return "No browser found."
if last char of typ is numToChar(0) then delete last char of typ
put queryRegistry("HKEY_LOCAL_MACHINE\SOFTWARE\Classes\"&typ\
&"\shell\open\command\") into cmd
if cmd="" then return "No browser open command found."
if last char of cmd is numToChar(0) then delete last char of cmd
if "%1" is not in cmd then put " ""e&theUrl"e after cmd
else replace "%1" with theUrl in cmd
open process cmd for neither
end show_url
Native support is "on the feature request list".
-------------------------------------------------------------------------------
Looking over it, this looks more like a subset of the FRL "what's on the
feature request list?" ;-)))
Regards
R�diger