Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » FileSel&FileList, Path » FileSel vs. FileSelector documentation shortcoming
FileSel vs. FileSelector documentation shortcoming [message #13668] Sun, 20 January 2008 12:09
Werner is currently offline  Werner
Messages: 234
Registered: May 2006
Location: Cologne / Germany
Experienced Member
As far as I can see, the file types (extensions) of FileSel may be separated by spaces, too (this is also what the documentation (only!) says) whereas the file types (extensions) of FileSelector (Win32 only) have to be separated by semicolons:

FileSel fs;
fs.Type("C/C++ files", "*.c *.cpp *.h *.hpp"); // spaces work!

FileSel fs;
fs.Type("C/C++ files", "*.c,*.cpp,*.h,*.hpp"); // commas work!

FileSel fs;
fs.Type("C/C++ files", "*.c;*.cpp;*.h;*.hpp"); // semicolons work!

FileSelector fs;
fs.Type("C/C++ files", "*.c *.cpp *.h *.hpp"); // spaces don't work!

FileSelector fs;
fs.Type("C/C++ files", "*.c,*.cpp,*.h,*.hpp"); // commas don't work!

FileSelector fs;
fs.Type("C/C++ files", "*.c;*.cpp;*.h;*.hpp"); // semicolons work!

It might be a good idea to document this.

Werner

[Updated on: Sun, 20 January 2008 14:28]

Report message to a moderator

Previous Topic: how to GetCurrentDirectory? [SOLVED]+how to search example
Next Topic: Getting the file type. (binary vs text files)
Goto Forum:
  


Current Time: Sat Feb 23 08:39:05 CET 2019

Total time taken to generate the page: 0.00495 seconds