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 file seting
FileSel file seting [message #26586] Thu, 13 May 2010 11:05 Go to previous message
koldo is currently offline  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
 
Read Message
Read Message
Read Message
Previous Topic: FEATURE: Desktop / home folder shortcuts in FileSel
Next Topic: Problem with FileSel
Goto Forum:
  


Current Time: Fri Mar 29 08:58:17 CET 2024

Total time taken to generate the page: 0.01820 seconds