Recent

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

trev

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2023
  • 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 »

skalogryz

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2770
    • havefunsoft.com
Re: TMemo scrolling issue
« Reply #1 on: June 21, 2019, 04:39:06 pm »
try r61438

trev

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2023
  • 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-)

skalogryz

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2770
    • 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

 

TinyPortal © 2005-2018