Hyperlink text in a message

Started by theorem5, July 09, 2020, 12:34:11 PM

Previous topic - Next topic

theorem5

Is there a way to hyperlink text in a message?  Something like:

Display(5,"test Site","test <a href='www.winbatch.com'>Winbatch Site</a>")

td

You are attempting to use HTML tags and the Display function knowns nothing about rendering HTML.  You do have several options using WIL Dialogs.  One would be to create a dialog that imitates the appearance of the Pause message box but with an embedded HTML control. See

https://docs.winbatch.com/mergedProjects/WindowsInterfaceLanguage/html/Internet_Explorer_COMCONTROL.htm

Another option would be to simply add a flat style button to the dialog with your URI as text and then respond to the button press in your dialog's user-defined-callback procedure.
"No one who sees a peregrine falcon fly can ever forget the beauty and thrill of that flight."
  - Dr. Tom Cade

theorem5

td,

Thanks for the reply.  I should have thought this through a bit more before posting.  I am building a message string that is being posted to another application via the iHttpOpen function.  The other application the does some things and then emails out the message.  The message is sent successfully, but the text is not getting hyperlinked.  It just displays it as

<a href='www.winbatch.com'>Winbatch Site"

in the email sent.  My guess is that because of how I am building the message, the other app is not interpreting it correctly.

Any thoughts?

td

Not sure if it is a cut & paste problem or not, but your HTML tag is ill-formed. Outside of that, whatever it is that you describe as "application" presumedly has some documentation that you could consult for some insights into its expectations and requirements.
"No one who sees a peregrine falcon fly can ever forget the beauty and thrill of that flight."
  - Dr. Tom Cade

JTaylor

In addition to Tony's comments, is the email being sent as an HTML email or Plain text.   If plain text that would result in what you are seeing, assuming I understand.

Jim

td

The OP didn't mention how the text was being sent so this may be a bit of useless verbiage. But if the clipboard is being used to sending text, the following topic could prove enlightening:

https://forum.winbatch.com/index.php?topic=2269.msg11909#msg11909
"No one who sees a peregrine falcon fly can ever forget the beauty and thrill of that flight."
  - Dr. Tom Cade