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 #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: 3460
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: Mon Jul 20 12:42:23 GMT+2 2026

Total time taken to generate the page: 0.00442 seconds