Home » U++ Library support » FileSel&FileList, Path » File Chooser closing
Re: File Chooser closing [message #30528 is a reply to message #30526] |
Thu, 06 January 2011 17:39   |
|
I still can't reproduce what you describe... Unfortunately I don't have MSC to test (actually I don't even have windows ). Maybe someone else out there could give it a try with MSC?
nlneilson wrote on Thu, 06 January 2011 15:52 | FileSel or FileSelector?, Nvl?
|
FileSelector uses windows API to open native windows file selector.
FileSel is pure U++ file selector dialog. It is typedefed to FileSelector on non-windows systems.
You can use FileSel on windows, but to be more user friendly I would choose FileSelector...
Nvl is a utility functions that checks if the first parameter is not Null. If it is, it returns the second argument, otherwise it returns the first one.
Anyway, for your needs, it is just fine to call something like void OpenBaseFile() {
fn1.ActiveDir(recent_dir);
if(fn1.ExecuteOpen()){ // file chooser
filename1 = fn1;
BaseFile<<=Value(fn1);
recent_dir = fn1.GetActiveDir();
}
}
In the attached file you will find even more elegant solution. I also fixed a couple of glitches in your code. All the changes are marked using a comment with my nick and explained.
Honza
|
|
|
Goto Forum:
Current Time: Sun Jun 08 13:33:27 CEST 2025
Total time taken to generate the page: 0.04285 seconds
|