Lazarus

Programming => Packages and Libraries => RichMemo => Topic started by: TraumTaenzerDieter on April 11, 2016, 07:41:10 pm

Title: Richmemo and BIG File (4500 lines, 330kb)
Post by: TraumTaenzerDieter on April 11, 2016, 07:41:10 pm
Hi all,
how can I get the Ctrl+C (Copy) and Ctrl+V (Paste)
work in such a big file (see headline) ?
With 4300 lines (320kb) both still work!?
Title: Re: Richmemo and BIG File (4500 lines, 330kb)
Post by: skalogryz on April 11, 2016, 10:05:16 pm
Should work just fine. What system (windows,osx,linux) are you looking into?
Title: Re: Richmemo and BIG File (4500 lines, 330kb)
Post by: TraumTaenzerDieter on April 11, 2016, 10:32:17 pm
I am on Windows 7 32 and 64bit,
both the same problem.
Lazarus 1.6 + fixes and latest RichMemo
Attached a (packed) Testprogram with TestFile (no .Exe)
Just open the file, mark a line,
press ^C and then ^V anywhere: nothing happens
Title: Re: Richmemo and BIG File (4500 lines, 330kb)
Post by: skalogryz on April 11, 2016, 10:39:48 pm
Worked flawlessly with Win10.

Try the following.
Add the second button to the form. Assign the following onclick event
Code: Pascal  [Select][+][-]
  1. procedure TForm1.Button1Click(Sender: TObject);
  2. begin
  3.   rm.SelectAll;
  4.   rm.CopyToClipboard;
  5. end;
  6.  
If it works, it might suggest the problem with short-keys handling somewhere.
Title: Re: Richmemo and BIG File (4500 lines, 330kb)
Post by: skalogryz on April 12, 2016, 02:45:11 am
nevermind on my last comment. I finally got what you meant by "^V anywhere".

The issue with limit of the text is fixed with r4617.
Title: Re: Richmemo and BIG File (4500 lines, 330kb)
Post by: TraumTaenzerDieter on April 12, 2016, 07:59:20 am
YES, thanks, it works on Win 32 and 64 !!
TinyPortal © 2005-2018