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 ExecuteSaveAs replace file prompt bug
Re: FileSel ExecuteSaveAs replace file prompt bug [message #16286 is a reply to message #16280] Fri, 06 June 2008 10:23 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 13980
Registered: November 2005
Ultimate Member
Thanks, this is stupid bug indeed.

I have resolved it with this simpler/cleaner fix:

void ColumnList::DoLeftDown(Point p, dword flags) {
	selclick = false;
	int i = GetDragColumn(p.x);
	if(i >= 0) {
		ci = i;
		dx = p.x - GetColumnCx(0) * (i + 1);
		mpos = p.x;
		SetCapture();
		Refresh(mpos - dx, 0, 1, GetSize().cy);
		SyncInfo();
	}
	else {
		int i = GetItem(p);
		if(i >= 0 && i < GetCount() && multi && IsSel(i))
			selclick = true;
		else
			DoClick(p, flags);
	}
}

void ColumnList::LeftDown(Point p, dword flags) {
	DoLeftDown(p, flags);
}


void ColumnList::LeftDouble(Point p, dword flags) {
	DoLeftDown(p, flags);
	WhenLeftDouble();
}


(Moral of the story - be careful with calling virtual methods...)

Mirek
 
Read Message
Read Message
Read Message
Previous Topic: FileSel bug when displaying Han characters
Next Topic: FindFile Problem
Goto Forum:
  


Current Time: Tue May 14 23:40:36 CEST 2024

Total time taken to generate the page: 0.01927 seconds