Nuri Boardman
2016-07-12 14:47:37 UTC
I am using fox 1.6.50 - but i checked both 1.6.51 and 1.7.56 and dont see
any relevant code that might change behavior
I am seeing different behavior between
FXFileDialog::getOpenFilenames(...)
and
FXFileDialog::getOpenFilename(...)
on the single filename version, if i type in a file that exists
(c:\file_that_really_exists)
it accepts the input
on the multiple filename version, if i type in the same thing, i get an
FXBeep
It feels like the issue is coming from FXFileSelector::getFilename()
for getOpenFilenames(...)
the selectmode==SELECTFILE_MULTIPLE
so we go inside that if statement, we loop over all the items currently
being shown in the window - but nothing is selected, so we end up returning
FXString::null
where as for getOpenFilename(...)
we skip the first 2 if statements, the !filename->getText().empty() passes,
and we return a good value
my initial thought was just to comment out the else
and make that logic happen if we dont find anything thats selected above
however for multiple files, i believe it should be possible to set a string
of
"C:\file1_that_exists" "c:\file2_that_exists" and have that work correctly
any assistance the community can provide would be very helpful
thanks
Nuri
any relevant code that might change behavior
I am seeing different behavior between
FXFileDialog::getOpenFilenames(...)
and
FXFileDialog::getOpenFilename(...)
on the single filename version, if i type in a file that exists
(c:\file_that_really_exists)
it accepts the input
on the multiple filename version, if i type in the same thing, i get an
FXBeep
It feels like the issue is coming from FXFileSelector::getFilename()
for getOpenFilenames(...)
the selectmode==SELECTFILE_MULTIPLE
so we go inside that if statement, we loop over all the items currently
being shown in the window - but nothing is selected, so we end up returning
FXString::null
where as for getOpenFilename(...)
we skip the first 2 if statements, the !filename->getText().empty() passes,
and we return a good value
my initial thought was just to comment out the else
and make that logic happen if we dont find anything thats selected above
however for multiple files, i believe it should be possible to set a string
of
"C:\file1_that_exists" "c:\file2_that_exists" and have that work correctly
any assistance the community can provide would be very helpful
thanks
Nuri