Topic: Email Hyperlink

Hi,

Is it possible to make an email address field a hyperlink so tyhat you just need to click the email address and your mail client activates?

Thx,

John

Re: Email Hyperlink

Hi John,
I'd probably do it something like this (see attachment) but I'm sure there are other ways too.
The extra bit in the script is just so you can double-click in the grid rather than having to mouse down to the edit field (call me lazy!!).
Hope this helps,
Derek.

Post's attachments

Attachment icon snapper.zip 336.96 kb, 398 downloads since 2016-05-03 

Re: Email Hyperlink

Hello,


Yes, just place Label on form and change follow properties:
Font > Color = clHotLight
Font > Style = U
Cursor = crHand


then create event OnClick for the Label

procedure Form1_Label1_OnClick (Sender: string);
begin
    OpenURL('mailto:email@gmail.com');
end;


Also you can download example project:

Post's attachments

Attachment icon Email link.zip 2.37 kb, 407 downloads since 2016-05-03 

Dmitry.