Jump to content

Recommended Posts

Posted

Hey guys , i want to make a TUniLabel link able so when i click the label, it go to specified URL (or download if file is .pdf)

 

any advice would be appreciate. thanks

 

 

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

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.

 

Posted
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?

Posted

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.

Posted
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;

 

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...