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 #22703 is a reply to message #22702] Thu, 06 August 2009 16:17 Go to previous messageGo to previous message
koldo is currently offline  koldo
Messages: 3357
Registered: August 2008
Senior Veteran
Hello Mirek

A sample that works for me is in GridCtrl.cpp, function GridCtrl::SetClipboard, where the separation between rows is with \r\n and between columns is with \t.

This way the cells are pasted well in MS Excel and in Open Office.

A thing to care with is not to add aditional tabs per row as in GridCtrl. This additional tab deletes the next column in Excel.

So to copy this:

First   Row
Second  Row

it has to be passed to the clipboard this:

"First\tRow\r\nSecond\tRow"

instead of this:

"First\tRow\t\r\nSecond\tRow\t"

Thank you very much
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:59:54 CEST 2024

Total time taken to generate the page: 0.03442 seconds