Recent

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

Trenatos

  • Hero Member
  • *****
  • Posts: 535
    • 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: 2770
    • havefunsoft.com
Re: TRichMemo, turn off autoscroll?
« Reply #1 on: August 26, 2015, 11:07:33 pm »
What widgetset?

Trenatos

  • Hero Member
  • *****
  • Posts: 535
    • 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: 535
    • 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: 6163
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: 535
    • MarcusFernstrom.com
Re: TRichMemo, turn off autoscroll?
« Reply #5 on: August 27, 2015, 05:29:18 pm »
Thanks rvk, will test  :)

 

TinyPortal © 2005-2018