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

Home » U++ Library support » ArrayCtrl, HeaderCtrl & GridCtrl » Unicode character paste in GridCtrl
Re: Unicode character paste in GridCtrl [message #17718 is a reply to message #17716] Wed, 27 August 2008 14:16 Go to previous messageGo to previous message
unodgs is currently offline  unodgs
Messages: 1367
Registered: November 2005
Location: Poland
Ultimate Contributor

koldo wrote on Wed, 27 August 2008 07:20

Hello all

Perhaps the reason of that is due to the function void GridCtrl::Paste(int mode) (GridCtrl.cpp) does not handle the clipboard with unicode functions. For example:

Line 766

Instead of:
lines = Upp::Split(ReadClipboardText(), '\n');

Would have to be:
wlines = Upp::WSplit(ReadClipboardUnicodeText(), '\n'); (WSplit does not exists yet, ReadClipboardUnicodeText does exist)

What do you think?



Change this line to:
lines = Upp::Split(FromUnicode(ReadClipboardUnicodeText()), '\n');
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: GridCtrl empty cells pasted from Excel
Next Topic: Date pasted in GridCtrl saved in sqlite. Problem and solution
Goto Forum:
  


Current Time: Tue May 12 22:34:27 GMT+2 2026

Total time taken to generate the page: 0.00532 seconds