Jump to content

Como abrir um link no unigui


wanderson

Recommended Posts

Pessoal uma dica simples, como eu faço para abrir um link num botão tipo www.google.com.br.

 

Pesquisei aqui no fórum e não encontrei, salves não tenha pesquisado corretamente.

 

Estou com um projeto em desenvolvimento e até o momento estou gostando muito.

 

abraços

 

Sérgio Guedes

 

Link to comment
Share on other sites

Olá Sérgio.

 

Você pode colocar um componente TUniLabel e alterar a propriedade TextConversion para txtHTML.

 

Na propriedade Caption, você pode escrever algo como:

 

LabLinkFile.Caption := '<a href="' + UniServerModule.LocalCacheURL + FileName +
                           '" target=new>Clique aqui para salvar: (' + FileName + ')</a>';
 
O exemplo acima é um link para baixar um arquivo que foi gerado no servidor.
 
Atenciosamente,
Possidônio Oliveira.
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...