Jump to content

How to create URL link TUniLable


puspita

Recommended Posts

  • 2 weeks later...
  • 5 years later...

Label caption:

 

  UniLabel6.caption := 'Go To Google   ' + '<a href="www.google.com" >Google</a>';

  UniLabel6.caption := UniLabel6.caption + '  or Go To Yahoo  ' + '<a href="www.yahoo.com" >Yahoo</a>';

 

 

Id like, that links to be foirmx.show, instead of url links.

Link to comment
Share on other sites

17 hours ago, jahlxx said:

  UniLabel6.caption := 'Go To Google   ' + '<a href="www.google.com" >Google</a>';

UniLabel6.caption := 'Go To Google   ' + '<a href="#" onclick="window.ajaxRequest('+ UniLabel6.JSName +', ''ahrefclick'', [''val=1''])">Google</a>';
procedure TMainForm.UniLabel6AjaxEvent(Sender: TComponent; EventName: string;
  Params: TUniStrings);
begin
  if EventName='ahrefclick' then
    ShowMessage(Params.Values['val']);

end;

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...