Recent

Author Topic: TRichMemo, turn off autoscroll?  (Read 2270 times)

Trenatos

  • Hero Member
  • *****
  • Posts: 508
  • Software developer - Open source contributor
    • MarcusFernstrom.com
TRichMemo, turn off autoscroll?
« on: August 26, 2015, 10:49:37 pm »
Does anyone know of a way to turn on/off autoscroll for a TRichMemo control?

skalogryz

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2290
    • havefunsoft.com
Re: TRichMemo, turn off autoscroll?
« Reply #1 on: August 26, 2015, 11:07:33 pm »
What widgetset?
Patron Cocoa Widgetset development https://www.patreon.com/skalogryz

Trenatos

  • Hero Member
  • *****
  • Posts: 508
  • Software developer - Open source contributor
    • MarcusFernstrom.com
Re: TRichMemo, turn off autoscroll?
« Reply #2 on: August 26, 2015, 11:08:13 pm »
This is a stupid question but.. What's a widgetset?

Trenatos

  • Hero Member
  • *****
  • Posts: 508
  • Software developer - Open source contributor
    • MarcusFernstrom.com
Re: TRichMemo, turn off autoscroll?
« Reply #3 on: August 26, 2015, 11:12:57 pm »
Quick google fixed that lack of knowledge.

Carbon for OSX and Win32/Win64, haven't gotten to Linux yet

rvk

  • Hero Member
  • *****
  • Posts: 3842
Re: TRichMemo, turn off autoscroll?
« Reply #4 on: August 26, 2015, 11:59:40 pm »
At least for win32/win64 you can set HideSelection to true. When there is no selection there is no need for scrolling. (The scrolling is because the selection needs to be in view)

Code: [Select]
RichMemo1.HideSelection := true;
// do your thing.

Trenatos

  • Hero Member
  • *****
  • Posts: 508
  • Software developer - Open source contributor
    • MarcusFernstrom.com
Re: TRichMemo, turn off autoscroll?
« Reply #5 on: August 27, 2015, 05:29:18 pm »
Thanks rvk, will test  :)