Oberon Community Platform Forum
November 18, 2017, 03:24:16 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: CTRL+W (Get from Windows clipboard) some inconvenience  (Read 5064 times)
BohdanT
Sr. Member
****
Posts: 271


Life is difficult, but fortunately is short!


WWW
« on: October 08, 2009, 02:02:21 PM »

Some Windows App, when copying text into the clipboard, appended to the end of lines symbol 0AX.

In this case, after you insert text from the Windows clipboard - all displayed correctly.
But, if you save the file and then load it - added blank lines after each inserted line.

Is it possible, when you insert a Windows-clipboard, add option to ignore characters 0AX ?
Logged
negelef
Administrator
Jr. Member
*****
Posts: 55


« Reply #1 on: October 08, 2009, 02:16:21 PM »

Quote
But, if you save the file and then load it - added blank lines after each inserted line.

Try to save the file using the UTF-8 format.
Logged
BohdanT
Sr. Member
****
Posts: 271


Life is difficult, but fortunately is short!


WWW
« Reply #2 on: October 08, 2009, 02:43:15 PM »

Try to save the file using the UTF-8 format.
   

... and lost all formatting.  Wink
If I had to load the entire file - I would not have enjoyed the clipboard.
Logged
BohdanT
Sr. Member
****
Posts: 271


Life is difficult, but fortunately is short!


WWW
« Reply #3 on: October 08, 2009, 03:36:44 PM »

I changed in  module Clipboard -> GetFromClipboard to:
Code:
IF ch#0DX THEN
chUnicode[0] := ORD(ch);
chUnicode[1] := 0;
text.InsertUCS32(text.GetLength(), chUnicode);
END;
Everything works correctly.
   
Strange:If ignoring 0AX - text is inserted as one line! After save/load - displayed correctly.
Thus what a mess it turns. Text need insert with 0AX whatever while saving he was transformed into 0DX.
Logged
staubesv
Administrator
Sr. Member
*****
Posts: 387



« Reply #4 on: June 08, 2010, 11:54:42 AM »

Fixed in revision 3249, thanks!
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!