by
Wilfred Verkley >> Sun, 29 Aug 1999 0:58:07 GMT
Just set the font to be underlined, and the forecolor to be blue in the textbox properties (why doesnt jade use the font color instead of the foreColor?), and also use a different mouseCursor over the textbox maybe.
You could let the automatically jump to that web or email link by implementing the windows API call, shellExecute.
i.e
(external function definition)
//HINSTANCE ShellExecute(
//
// HWND hwnd, // handle to parent window
// LPCTSTR lpOperation, // pointer to string that specifies operation to perform
// LPCTSTR lpFile, // pointer to filename string
// LPTSTR lpParameters, // pointer to string that specifies executable-file parameters
// LPCTSTR lpDirectory, // pointer to string that specifies default directory
// INT nShowCmd // whether file is shown when opened
// );
shellExecute (hwnd, lpOperation, lpFile, lpParameters, lpDirectory, nShowCmd : Integer) is ShellExecuteA in shell32;
and the call implemented in the onClick of the text box works like:
vars
s, fn : String;
begin
s := "open";
fn := "mailto://
jadesupport@discoverjade.com"; //
// fn := "
http://news.jadeworld.com";
call shellExecute (0, s.bufferAddress, fn.bufferAddress, 0, 0, 1);
end;
Its a nice way of implementing external links into your application.