Re: Simulating hyperlinks in DelphiPosted by webmaster Guido on February 19, 2003 In Reply to: Using hyperlinks inside a program posted by SCFREAK on February 19, 2003
: It seems like a noobish question, but how to do use hyperlinks inside a Delphi program? 3. Create an OnClick event handler for the label: procedure TForm1.Label1Click(Sender: TObject); var HTML_File: string; begin HTML_File := 'http://www.festra.com/'; ShellExecute(Handle, 'open', PChar(HTML_File), nil, nil, SW_SHOW); end;
For an example, see DelphiLand's section "Code Snips": "Running an external application". |