12-14-2006 03:55 PM
12-15-2006 08:10 AM
You can use a textbox or a listbox. The link functionality isn't built in, but you can add it through callbacks.
Attached is a simple example which uses a textbox.
It uses GetTextBoxLineIndexFromOffset and GetTextBoxLine to read the textbox line that was clicked on. It then checks for .pdf or http:// on the line, then launches the default application using the Windows SDK function ShellExecute. If you don't have the SDK installed, you can use LaunchExecutable instead, but then you have to specify the application to open the file.
This example uses a timer because the textbox offset is updated after the leftclick event occurs.
For a real application, you probably need a more sophisticated parser, maybe by adding tags so the link can be imbedded within a line. This simple example uses an entire lien as the link.
12-18-2006 12:39 PM
Thanks. I checked it out. I think I should have rephrased my question to be "I need to display formatted text with embedded links (HTML). Does LabWindows provide any textbox like control that has this functionality?"
Edgar
12-19-2006 05:01 PM
12-20-2006 11:30 AM
I have found another example "C:\Program Files\National Instruments\CVI(version)\samples\userint\activex\WebBrowser.pr " that was very helpful.
Thanks for all your advice.
Edgar