Jump to content

How to create URL link TUniLable


puspita

Recommended Posts

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

Yes, I can, but if I want to have a label like this:  You can view our Terms Here1 and Your Profile Here2

Clicking "here1" must show form1,  and  clicking  "here2"  must show form2.

I hope I've clarified.

Thanks.

 

Link to comment
Share on other sites

9 minutes ago, jahlxx said:

but if I want to have a label like this:  You can view our Terms Here1 and Your Profile Here2

Where are you generating this?

How will you distinguish between these links?

Link to comment
Share on other sites

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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...