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 » ArrayCtrl, HeaderCtrl & GridCtrl » ArrayCtrl copy to the Clipboard
Re: ArrayCtrl copy to the Clipboard [message #22730 is a reply to message #22723] Sun, 09 August 2009 17:32 Go to previous messageGo to previous message
koldo is currently offline  koldo
Messages: 3357
Registered: August 2008
Senior Veteran
Thank you Mirek

This is the version I have included, adding IsSel to copy only selected rows.

	String s;
	
	for(int i = 0; i < array.GetCount(); i++) {
		if (array.IsSel(i)) {
		    for(int j = 0; j < array.GetColumnCount(); j++) {
		         if(j) 
		         	s << '\t';
		         s << AsString(array.Get(i,j));
		    }
		    s << "\r\n";
		}
	}
	WriteClipboardText(s);


To finish this it would be great to add it to ArrayCtrl Smile.

Best regards
Koldo


Best regards
IƱaki
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: GridCtrl and copy to clipboard
Next Topic: Export Ctrl to qtf table
Goto Forum:
  


Current Time: Sat Apr 27 10:56:06 CEST 2024

Total time taken to generate the page: 0.03544 seconds