LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

NI Example Finder Like

Solved!
Go to solution
I would like to create a windows that looks like NI Example Finder.  I remember seeing it in as an example but for some reasons I can't seem to find it again.  I would like to have the ability list multiple VI by folder directory then allowing end user to click on it and open that VI then close the front panel.  Does anyone know where can I find this example and what is the name of it?  Thanks
0 Kudos
Message 1 of 10
(6,489 Views)
There are several examples that do what you're referring to. Gettting the list of VIs is pretty trivial. There's a VI in the File I/O palette that you can use for that. Opening/closing the VIs is simply done with the VI Server. Example:
Message 2 of 10
(6,475 Views)
Oh yeah, that I already know.  Opening a file is easy.  But I want to create a tree with a double-click listener.  In this tree, I would like to have multiple folders and when a user expands and clicks on the lowest child object (double-click, not single), it will open up another VI.  How do I do that?  I kinda got some ideas with using a tree but how do I create a double-click listener on the tree?  I remember seeing this example before but I can't seem to find it anymore.

Message Edited by lavalava on 11-15-2009 10:06 AM
0 Kudos
Message 3 of 10
(6,456 Views)
If you open the Example Finder and search for "tree" you will find the example "Directory Hierarchy in Tree Control". This populates a tree. You can add an event structure and handle the "Double Click" event for the tree. That event has a "Tag" parameter that tells you which element was double-clicked.
Message 4 of 10
(6,449 Views)

Guys,  I've also seen this example before:

 

gettingStarted.jpg

 

Does anyone know where can I find this example?  It looks exactly like getting started windows.  Thanks

0 Kudos
Message 5 of 10
(6,432 Views)
I would like to have the ability to click on a hyperlink and then open VIs (red arrow).  How do I do that?
0 Kudos
Message 6 of 10
(6,430 Views)
There is no hyperlink control in LabVIEW, so you have to make it yourself. You can do this quite easily using a button and making it transparent. You can respond to the "Mouse Enter" and "Mouse Leave" events to make the Boolean text underlined/not underlined respectively.
Message 7 of 10
(6,408 Views)

here is an example:

 

hope it helps:

Harold Timmis
htimmis@fit.edu
Orlando,Fl
*Kudos always welcome:)
Message 8 of 10
(6,399 Views)
Solution
Accepted by lavalava
Well, that doesn't quite work like a normal hyperlink. With a hyperlink the text remains underlined while the mouse is over the text. That's why I said to use the "Mouse Enter" and "Mouse Leave". By doing so you also eliminate the unnecessary timeout value for the event stucture.
Message 9 of 10
(6,380 Views)

Very nice.  Change the Boolean text color to purple (say) using a property node in the Value Change case, and it is a reasonable approximation to a hyperlink.  Be sure to change it to blue ahead of time as well.

 

Hyperlink.png

Message 10 of 10
(6,375 Views)