LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Can I save/restore the properties of a File Select popup panel?

Within a File Selct Popup, you can display Details of the files in the folder, and you can change the displayed columns: filename, extension, date modified, etc.
Any changes made are forgotten when you leave the Popup.
Is it possible to read these parameters, so that they can be saved and restored?

0 Kudos
Message 1 of 2
(3,001 Views)

Hi

 

I have had a look into how CVI and windows deals with the file open dialog box. CVI wraps the Windows file open dialog box and opens it in its default view, it has the functionality to change that default view but the implementation does not have the functionality to store those changes. It is the piece of software that you are using which needs to have the functionality to store the changes that have been made e.g. if you change the view style in excel it wont effect the view style in word. If you want this functionality you will have to either write your own file open dialog (using a panel) or build your own wrapper for the windows open dialog box which contains the functionality to save the settings set by the user. (You’ll need the Windows SDK for CVI installed which isn’t installed by default when installing LabWindows/CVI – you can do a custom install, and then select the SDK checkbox to get the files included. Your best resource of what to call in terms of accessing and controlling the Windows Open File Dialog is the Microsoft Developer Network (msdn.microsoft.com) and the web in general, looking for example code on this.)

 

A good link that I have found useful is www.theeldergeek.com

 

I hope this help

 

Tim

 

Applications Engineer | National Instruments | UK & Ireland

Message 2 of 2
(2,967 Views)