Recent

Author Topic: [SOLVED] TMemo scrolling issue  (Read 654 times)

trev

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1282
  • Former Delphi 1-7, 10.2 User
[SOLVED] TMemo scrolling issue
« on: June 21, 2019, 12:06:52 pm »
Code: Pascal  [Select][+][-]
  1.       // select characters to highlight
  2.       Memo.SelStart := PosEx(UpperCase(Edit.Text), UpperCase(Memo.Text), searchOFS) - 1;
  3.       Memo.SelLength := Length(Edit.Text);  
  4.  

This does not scroll the relevant text into the viewable TMemo window. In fact, it has no effect - no scrolling at all :( The highlighting does work :)

Sample project showing issue attached. Lazarus and OS details vvvvv below vvvvv
« Last Edit: June 22, 2019, 11:50:47 am by trev »
Lazarus 2.1 r64368 FPC 3.3.1 r48100 macOS 10.14.6 Xcode 11.3.1
Lazarus 2.1 r64455 3.3.1 r48840   macOS 11.2.2 aarch64 Xcode 12.4
Lazarus 2.1 r61574 3.3.1 r42318 FreeBSD 12.1 amd64 VMware VM
Lazarus 2.1 r61574 3.0.4 Ubuntu 20.04 Parallels VM
Lazarus 2.0.10 3.2.0 Win10 Parallels VM

skalogryz

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2565
    • havefunsoft.com
Re: TMemo scrolling issue
« Reply #1 on: June 21, 2019, 04:39:06 pm »
try r61438
Patron Cocoa Widgetset development https://www.patreon.com/skalogryz

trev

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1282
  • Former Delphi 1-7, 10.2 User
Re: [SOLVED] TMemo scrolling issue
« Reply #2 on: June 22, 2019, 02:52:55 am »
Thanks Dmitry! It now works as expected  8-)
Lazarus 2.1 r64368 FPC 3.3.1 r48100 macOS 10.14.6 Xcode 11.3.1
Lazarus 2.1 r64455 3.3.1 r48840   macOS 11.2.2 aarch64 Xcode 12.4
Lazarus 2.1 r61574 3.3.1 r42318 FreeBSD 12.1 amd64 VMware VM
Lazarus 2.1 r61574 3.0.4 Ubuntu 20.04 Parallels VM
Lazarus 2.0.10 3.2.0 Win10 Parallels VM

skalogryz

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2565
    • havefunsoft.com
Re: [SOLVED] TMemo scrolling issue
« Reply #3 on: June 22, 2019, 03:36:29 am »
thank you! the more you find, the better the widgetset overall
Patron Cocoa Widgetset development https://www.patreon.com/skalogryz

 

TinyPortal © 2005-2018