LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

How to link to a web page from a text control?

I want to have a classic about box with a link to our web page. How do I make this link? Just inserting HTML in the text box (text Message constant) does not work.

Thanks,
Martin
0 Kudos
Message 1 of 4
(3,253 Views)
Also how do I make the text blue? In the 'Text Style' box the colour option is grayed out... initially the adjustment option is also grayed out... however, this is removed by deselecting 'Size to text'.

Cheers,
Martin
0 Kudos
Message 2 of 4
(3,247 Views)
Skinny,

To launch a webpage from a text box, create a callback for it, and on EVENT_LEFT_CLICK you can run the following command

/*Launch IE with www.mywebpage.com open*/
LaunchExecutable ("Explorer.exe http://www.mywebpage.com");

To set the color of the textbox try,

/*Programatically set your textbox text colors to blue*/
SetCtrlAttribute (thisPanel, PANEL_TEXTBOX, ATTR_TEXT_COLOR, VAL_BLUE);
Message 3 of 4
(3,242 Views)
Here is a sample code that may help.
Regards, Philippe proud to be using LabWindows since version 1.2
// --------------------------------------------------------------------------------------------
Message 4 of 4
(3,203 Views)