manojba Posted April 30, 2009 Report Share Posted April 30, 2009 Hi, how to create hypertext link in labview i have splash screen for about button, in the splash screen I have my companys website link as of now its a underlined text how to make it a hyperlink so when somebody clicks on it it should open the website thanks in advance... Quote Link to comment
Antoine Chalons Posted April 30, 2009 Report Share Posted April 30, 2009 Hi, The only way I can think of is using a command line : And launch this when there is a clic on a specific area. [EDIT] couldn't find a DOS command to launch the default browser... Hope this helps Quote Link to comment
Mellroth Posted April 30, 2009 Report Share Posted April 30, 2009 QUOTE (manojba @ Apr 29 2009, 09:00 AM) Hi, how to create hypertext link in labview i have splash screen for about button, in the splash screen I have my companys website link as of now its a underlined text how to make it a hyperlink so when somebody clicks on it it should open the website thanks in advance... How about this; 1. detect mouse click on the link text (easy to do with the event structure) 2. launch default browser as Antoine suggested, or you could embed the webpage in your application using an ActiveX container. /J Quote Link to comment
Yair Posted April 30, 2009 Report Share Posted April 30, 2009 There's a VI in the help palette for opening a URL in the default browser. If you want, the Code Capture Tool includes an example of what you want in the about window. Quote Link to comment
manojba Posted April 30, 2009 Author Report Share Posted April 30, 2009 QUOTE (Yair @ Apr 29 2009, 03:12 PM) There's a VI in the help palette for opening a URL in the default browser. If you want, the http://forums.lavag.org/-file121.html' target="_blank">Code Capture Tool includes an example of what you want in the about window. Thanks everyone actually I had used open Url in default browser vi and to trigger it I used Flat square button in front panel with color of background so that it was not visible but i had problem with it whenever user clicks on text the button is not pressed as it is behind text but if user clicks area behind text it works but it is not working as i need it bcoz its difficult to press the button you will come to know by seeing the following fig Then i changed to event structure though its working fine but it would have been nice if it worked on clicking text and not whole panel. Quote Link to comment
Phillip Brooks Posted April 30, 2009 Report Share Posted April 30, 2009 QUOTE (manojba @ Apr 29 2009, 03:00 AM) Hi, how to create hypertext link in labview i have splash screen for about button, in the splash screen I have my companys website link as of now its a underlined text how to make it a hyperlink so when somebody clicks on it it should open the website thanks in advance... See attached example (LabVIEW 8.0) http://lavag.org/old_files/post-949-1241002997.vi'>Download File:post-949-1241002997.vi Quote Link to comment
manojba Posted April 30, 2009 Author Report Share Posted April 30, 2009 QUOTE (Phillip Brooks @ Apr 29 2009, 04:33 PM) See attached example (LabVIEW 8.0)http://lavag.org/old_files/post-949-1241002997.vi'>Download File:post-949-1241002997.vi Thanks Phillip this is what I needed ... Quote Link to comment
ShaunR Posted April 30, 2009 Report Share Posted April 30, 2009 QUOTE (manojba @ Apr 29 2009, 08:00 AM) Hi, how to create hypertext link in labview i have splash screen for about button, in the splash screen I have my companys website link as of now its a underlined text how to make it a hyperlink so when somebody clicks on it it should open the website thanks in advance... Hmm. Got me thinking. This would be a good one for a Coding Challenge. Who could write the best URL Label XControl. Be nice to be able to just plonk one on the FP. Quote Link to comment
jdunham Posted April 30, 2009 Report Share Posted April 30, 2009 QUOTE (manojba @ Apr 29 2009, 03:45 AM) Thanks everyone actually I had used open Url in default browser vi and to trigger it I used Flat square button in front panel with color of background so that it was not visible but i had problem with it whenever user clicks on text the button is not pressed as it is behind text but if user clicks area behind text it works but it is not working as i need it bcoz its difficult to press the button you will come to know by seeing the following figThen i changed to event structure though its working fine but it would have been nice if it worked on clicking text and not whole panel. 1) It's better to make the boolean transparent instead of matching the background. Then if you are using system color or if you change the background, it will always work 2) Use the boolean's "Boolean Text" property rather than just a string overlaid on your boolean. Then the whole thing will be clickable. Quote Link to comment
LAVA 1.0 Content Posted April 30, 2009 Report Share Posted April 30, 2009 QUOTE (jdunham @ Apr 29 2009, 08:58 AM) 1) It's better to make the boolean transparent instead of matching the background. Then if you are using system color or if you change the background, it will always work2) Use the boolean's "Boolean Text" property rather than just a string overlaid on your boolean. Then the whole thing will be clickable. Quick example with mouse over text color change. http://lavag.org/old_files/post-3370-1241026080.vi'>Download File:post-3370-1241026080.vi Quote Link to comment
manojba Posted May 1, 2009 Author Report Share Posted May 1, 2009 QUOTE (LV_FPGA_SE @ Apr 29 2009, 10:58 PM) Quick example with mouse over text color change.Download File:post-3370-1241026080.vi Hi there can you post your vi again using save for previous version and changing it to version 8.0 bcoz i have v8.0 so i couldnt open your vi and it would be better if you post it quickly thanks... QUOTE (jdunham @ Apr 29 2009, 08:28 PM) 1) It's better to make the boolean transparent instead of matching the background. Then if you are using system color or if you change the background, it will always work 2) Use the boolean's "Boolean Text" property rather than just a string overlaid on your boolean. Then the whole thing will be clickable. Thanks for your suggestion of making boolean transparent it has solved my earlier problem, this is how it works by making boolean transperent. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.