Put on your form StaticText component then in uses put lclintf, then use command OpenUrl, see my code
unit Unit1;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, StdCtrls, lclintf;
type
{ TForm1 }
TForm1 = class(TForm)
StaticText1: TStaticText;
procedure StaticText1Click(Sender: TObject);
procedure StaticText1MouseEnter(Sender: TObject);
procedure StaticText1MouseLeave(Sender: TObject);
private
{ private declarations }
public
{ public declarations }
end;
var
Form1: TForm1;
implementation
{$R *.lfm}
{ TForm1 }
procedure TForm1.StaticText1Click(Sender: TObject);
begin
OpenURL('http://www.lazarus.freepascal.org');
{when you click StaticText it will connect to website using default browser.}
end;
procedure TForm1.StaticText1MouseEnter(Sender: TObject);
begin
StaticText1.Cursor := crHandPoint;
{cursor changes into handshape when it is on StaticText}
StaticText1.Font.Color := clBlue;
{StaticText changes color into blue when cursor is on StaticText}
end;
procedure TForm1.StaticText1MouseLeave(Sender: TObject);
begin
StaticText1.Font.Color := clDefault;
{when cursor is not on StaticText then color of text changes into default color}
end;
end.