06-17-2015 04:47 PM - edited 06-17-2015 04:50 PM
2013 SP2
If you specify a "Default File Spec" name that is longer than 10 characters plus a 3 character '.' extension, the filename displayed is missing characters posistions 11 and up, i.e. if the file name passed is "abcdefg0987654321.ext" only "0987654321.ext" gets displayed. The full text is there but you have to go in and cursor to the left to get the upper part of the file name to display.
This only seems to affect FileSelectPopupEx not the superseded FileSelectPopup function.
06-18-2015 09:53 AM
Hi Tim,
I'm not sure if this is expected behavior or not, but this sounds like a good post for our LabVIEW idea exchange!
You can find it here: http://forums.ni.com/t5/LabVIEW-Idea-Exchange/idb-p/labviewideas
06-18-2015 10:32 AM
Like I said, it seems to work just fine in the superseded function FileSelectPopup so I'm pretty sure it is a bug. The file name field is many times wider than needed to display the file name I'm sending in. Seems pretty odd how it is randomly pushing the string out the left side of the file name field.
This is in Labwindows/CVI 2013 SP2. I'm not a LabView user so I'm not sure if they share libraries.
06-18-2015 10:39 AM
They do share libraries as long as you have support for that library installed for the program. (Found during install or repair of NI software).
I can pass along your concerns to R&D, but they also monitor our idea exchange forums and I encourage you to post them there.
The LabWindows CVI idea exchange can be found here: http://forums.ni.com/t5/ideas/v2/ideaexchangepage/blog-id/cviideas
06-18-2015 01:07 PM - edited 06-18-2015 01:07 PM
Actually Tim I looked into this further and I'll be attempting to recreate the issue and possilby file a CAR.
Would you be able to elaborate on the lines of code that cause this?
Paste in a code snippet perhaps?
Thanks,
CB
06-18-2015 02:34 PM
char pn[MAX_PATHNAME_LEN];
FileSelectPopupEx ("", "abcdefg0987654321.csv", "*.csv", "File root name > 10 characters", VAL_LOAD_BUTTON, 0, 0, pn);
See attached for capture of popup window. I just added the above lines to a from scratch Labwindows/CVI UI project to make sure that it wasn't something else I was doing.
06-18-2015 04:02 PM
Hi Tim,
I was unable to replicate your issue on my own.
Can you upload your simple test project here so that I can run it on my machine? Make sure to include the whole project please.
Thanks!
06-18-2015 11:49 PM
Hello HeisenBerger15,
I have used the Interactive Execution window (CVI 2013 SP2) with the following code:
#include <userint.h>
static char pathname[MAX_PATHNAME_LEN];
FileSelectPopupEx ("", "abcdefg0987654321.csv", "*.csv", "File", VAL_LOAD_BUTTON, 0, 0, pathname);
I was able to observe the reported behavior.
One obtains the full file name if the focus is temporarily changed.
06-19-2015 09:40 AM
Hi Casey,
I've attached a zip of a simple project.
Wolfgang is right. If you change focus away and back again to the FileSelectPopupEx popup window is another way of getting the full file name to display.
Wolfgang, never knew about the Interactive Execution window, thanks. Took a while to find it (Help doesn't tell you where it is). Of course it was hiding in plain site at the bottom of the "Windows" menu 8^).
Tim
06-19-2015 10:23 AM
Wolfgang and Tim,
Thanks for reminding me of the Interactive Execution Window. That made it super easy to reproduce.
I've filed a CAR on this, number is 533637. Please check the Release Notes in future patches or releases of this software for this number to verify if it has been addressed.