U++ framework
Do not panic. Ask here before giving up.

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: 3460
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: Sun Jul 19 20:28:45 GMT+2 2026

Total time taken to generate the page: 0.00443 seconds