07-02-2013 07:37 AM
Hello,
today I have tried using the path control from the toolslib library. I have tried both using the UI editor to add a path control to an existing user interface by selecting Create»Custom Controls»Toolslib Controls»Path Control and also programmatically using an existing string control and then adding the function NewPathCtrl to my code.
Running the program however was somehow disappointing. I was expecting that as I type in the path control the control displays matching files and directories in a drop-down list box, as described in the help. However, I did not experience this functionality... (I am using CVI2012 SP1) What did I miss? I was searching for an example but couldn't find one, so I decided to ask here...
Thanks!
Solved! Go to Solution.
07-02-2013 07:58 AM
Wolfgang ha scritto:
...I was expecting that as I type in the path control the control displays matching files and directories in a drop-down list box, as described in the help. However, I did not experience this functionality... (I am using CVI2012 SP1) What did I miss? I was searching for an example but couldn't find one, so I decided to ask here...
Thanks!
Hello Wolfgang,
this is actually what the control does: as long as you type in the control and add a backslash, there appears a drop-down list with child items, where you can select one offthem using the arrow keys and proceed with another backslach to explore the next level.
Can you run the example located in samples\userint\custctrl\pathctrl\simple.prj?
07-02-2013 08:43 AM - edited 07-02-2013 08:51 AM
@Roberto:
Thanks a lot, may be I should have had a coffee first... I did use the example finder but didn't see the example, thanks for pointing me to it!
@NI: Besides the example finder I also used the online help (http://zone.ni.com/reference/en-XX/help/370051V-01/toolslib/functionreference/cvinewpathctrl/) which turns out to be incomplete... The help provided with CVI also mentions the examples while the online help does not...
@everyone else: the help is a bit incomplete: one actually has to enter an absolute path name, such as C:\Documents and Settings\Wolfgang\My Documents\
07-24-2013 03:54 AM
Hi,
I have a problem with an append path from the "build path" function.
Built the path, it enter in "list folder" function but does not pass through the tunnel of the for loop.
Instead, if I wire a path controll to the "list folder", the path pass through the tunnel and the vi run as it should.
I attach the image of my VI so you understand better.
07-24-2013 03:58 AM
Please... Help me!!! 🙂
07-24-2013 04:01 AM - edited 07-24-2013 04:13 AM
Did you expect an answer within three minutes?
In any case, it may be more appropriate to ask this question in the LabVIEW forum
... continues here