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 #33921 is a reply to message #22730] Mon, 26 September 2011 14:45 Go to previous messageGo to previous message
forlano is currently offline  forlano
Messages: 1185
Registered: March 2006
Location: Italy
Senior Contributor
koldo wrote on Sun, 09 August 2009 17:32

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


Hello Koldo,

I need to get the rows selected in an array. Is this snippet included in some ArrayCtrl method? I cannot find it.
Thanks,
Luigi
 
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:42:10 CEST 2024

Total time taken to generate the page: 0.02239 seconds