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 » Developing U++ » U++ TheIDE and Library: Releases and ChangeLogs » Dropping files....
Dropping files.... [message #9460] Wed, 09 May 2007 11:25
mirek is currently offline  mirek
Messages: 14265
Registered: November 2005
Ultimate Member
Support for file explorer drops was added as demostrated in UWord example; this time it is really quite simple to use:

void UWord::DragAndDrop(Point, PasteClip& d)
{
	if(AcceptFiles(d)) {
		Vector<String> fn = GetFiles(d);
		for(int i = 0; i < fn.GetCount(); i++)
			if(FileExists(fn[i]))
				OpenFile(fn[i]);
	}
}

 
Read Message
Previous Topic: TreeCtrl now supports D&D
Next Topic: TheIDE now accepts file drops...
Goto Forum:
  


Current Time: Mon Jul 07 19:20:25 CEST 2025

Total time taken to generate the page: 0.02976 seconds