LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

comment avoir un "File Path Ctrl" ?

bonjour,

je voudrais savoir comment obtenir un control qui va me selectionner un chemin de repertoire comme dans LabView avec son "File Path Ctrl".

mon but étant de selectionner un répertoire ou j'irai chercher le contenu.

mes considérations,

Cordeiro Joel
Kodak Trophy
0 Kudos
Message 1 of 10
(4,381 Views)
If I am not wrong, you are looking for the ability to browse the disk and select a file and/or path. You will find very useful for this the FileSelectPopup and DirSelectPopup commands located in the User interface library.


Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
Message 2 of 10
(4,371 Views)
thanks,

but, can y do that whith a control in a panel whithout a popup ?
0 Kudos
Message 3 of 10
(4,367 Views)
Well, in CVI 7 there is a file browser control that you can locate in one of your panels to browse the disk. In preceding versions of CVI you'll have to write your own piece of code or find a third party control to do it.


Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 4 of 10
(4,365 Views)
OK, so will do with a popup.
thanks for all.
0 Kudos
Message 5 of 10
(4,365 Views)

@cordeiro wrote:
bonjour,

je voudrais savoir comment obtenir un control qui va me selectionner un chemin de repertoire comme dans LabView avec son "File Path Ctrl".

mon but étant de selectionner un répertoire ou j'irai chercher le contenu.

mes considérations,

Cordeiro Joel
Kodak Trophy


I have also done this, as you have expressed, from a control on a panel, without using a popup. But it was not simple. I used a combination of ring controls and radio buttons to get user input. The ring controls programmatically keep a history of its user's previous selections (through use of updating an ini file with a path/filename string entry), the last item on the ring is always set to "browse". If the user selects "browse", the resulting callback contains a collection of functions that search for files of a certain extension type, down directories with certain characteristics. (user sets radio buttons prior to using ring control to set kinds of directories, or file extensions.) As you may imagine, this required some time and effort, but was all fairly straight forward code. The FileDirectoryPopup is much quicker to emplement.
Message 6 of 10
(4,358 Views)
Hello, and thanks,

yes, it's not simple !

so, I will do with a popup, I haven't time now to do that from a control on a panel.

I thinked it was a fonction already maked.

thanks for all, goodbye.
0 Kudos
Message 7 of 10
(4,345 Views)

Hello

I'm using CVI7

can you give me the location of file browser control please? 

0 Kudos
Message 8 of 10
(4,194 Views)
You can place a file browser control on your UIR by right-clicking on the panel and selecting Custim controls >> Toolslib controls >> Fie browser in the context menu.
 
The control works in conjunction with FileBrowser.fp instrument, located in <cvidir>\toolslib\custctrl directory.


Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
Message 9 of 10
(4,185 Views)
I've found it
thank you roberto
0 Kudos
Message 10 of 10
(4,179 Views)