Home » U++ Library support » FileSel&FileList, Path » FileSel file seting
FileSel file seting [message #26586] |
Thu, 13 May 2010 11:05 |
|
koldo
Messages: 3355 Registered: August 2008
|
Senior Veteran |
|
|
Hello Mirek
A very small fix and a question.
- After last changes line "const char *fs = " Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Shel l Folders" in FileSel.cpp seems not to be necessary.
- I wanted to set "file" field before an ExecuteOpen() to be the by default file, but I do not know how as Update() function deletes it:
void FileSel::Update() {
String fn;
if(list.IsSelection()) {
for(int i = 0; i < list.GetCount(); i++)
if(list.IsSelected(i))
Catq(fn, list[i].name);
}
else
if(list.IsCursor()) {
const FileList::File& m = list[list.GetCursor()];
if(!m.isdir)
Catq(fn, m.name);
}
if(mode == OPEN)
file <<= fn;
...
As fn is empty because FileSel window is just open and user has not selected anything, file <<= fn; always deletes it.
Best regards
Iñaki
|
|
|
|
|
Goto Forum:
Current Time: Thu Mar 28 18:04:24 CET 2024
Total time taken to generate the page: 0.01850 seconds
|