Recent

Author Topic: TMemo scrolls up when something is assigned to its SelText property  (Read 16091 times)

Bart

  • Hero Member
  • *****
  • Posts: 5713
    • Bart en Mariska's Webstek
Re: TMemo scrolls up when something is assigned to its SelText property
« Reply #15 on: November 28, 2016, 10:20:02 pm »
I would like to inform you that this problem still persists in Lazarus version 1.6.2 (Win64). I think it is not fixed yet.

No it's not fixed, as you could have seen here: http://bugs.freepascal.org/view.php?id=8665.

Patches (cross-platform) are welcome.

Bart

fedkad

  • Full Member
  • ***
  • Posts: 178
Re: TMemo scrolls up when something is assigned to its SelText property
« Reply #16 on: March 09, 2017, 02:47:57 pm »
Hi again Bart,

Problem still exists in Lazarus version 1.6.4 (Win64).

However, in Bugtracker (http://bugs.freepascal.org/view.php?id=8665) the following is said:

Quote
Status   resolved
Resolution   fixed   
Target Version   1.6.4
Fixed in Version   1.7 (SVN)

What does this mean?
Lazarus 4.0 / FPC 3.2.2 on x86_64-linux-gtk2 (Ubuntu/GNOME) and x86_64-win64-win32/win64 (Windows 11)

Bart

  • Hero Member
  • *****
  • Posts: 5713
    • Bart en Mariska's Webstek
Re: TMemo scrolls up when something is assigned to its SelText property
« Reply #17 on: March 09, 2017, 06:32:24 pm »
What does this mean?

It means that Michl thinks it is fixed (and merged to 1.6.4).
If this is not the case, then the issue should be re-opened.

Note: the implementation (Windows) is now done via a call to
Code: [Select]
  SendMessageW(ACustomEdit.Handle, EM_REPLACESEL, WPARAM(1), LPARAM(PWideChar(UTF8ToUtf16(AText))));

So, basically we let Windows replace the selection.
If that causes scrolling, then I don't know what to do about that.

Bart
« Last Edit: March 09, 2017, 06:36:56 pm by Bart »

fedkad

  • Full Member
  • ***
  • Posts: 178
Re: TMemo scrolls up when something is assigned to its SelText property
« Reply #18 on: March 11, 2017, 11:33:00 am »
I guess that fix is not included in version 1.6.4, because the test program "memoseltext.zip (65,613 bytes) 2016-09-07 15:27"  does NOT work as expected in version 1.6.4.

Also, the release notes ( http://wiki.freepascal.org/Lazarus_1.6_fixes_branch ) do NOT mention about issue #0008665 (http://bugs.freepascal.org/view.php?id=8665).
Lazarus 4.0 / FPC 3.2.2 on x86_64-linux-gtk2 (Ubuntu/GNOME) and x86_64-win64-win32/win64 (Windows 11)

Bart

  • Hero Member
  • *****
  • Posts: 5713
    • Bart en Mariska's Webstek
Re: TMemo scrolls up when something is assigned to its SelText property
« Reply #19 on: March 11, 2017, 04:36:04 pm »
AFAICS none of these revesions are merged to 1.6 fixes branch.
You should ask Michl what the reason for that was, I don't know.

Bart

 

TinyPortal © 2005-2018