Lazarus
Home
Help
TinyPortal
Search
Login
Register
Lazarus
»
Forum
»
Programming
»
Packages and Libraries
»
RichMemo
»
How to disable autoscroll in TRichMemo
Free Pascal
Website
Downloads
Wiki
Documentation
Bugtracker
Mailing List
Lazarus
Website
Downloads (Laz+FPC)
Packages (OPM)
FAQ
Wiki
Documentation (RTL/FCL/LCL)
Bugtracker
CCR Bugs
GIT
Mailing List
Other languages
Foundation
Website
Useful Wiki Links
Project Roadmap
Getting the Source
Screenshots
How to use the forum
Forum Rules
About donations (wiki)
Bookstore
Computer Math and Games in Pascal
(preview)
Lazarus Handbook
Search
Advanced search
Recent
Remote desktop software i...
by
Boleeman
[
Today
at 03:54:26 pm]
Some Lazarus Graphics Rel...
by
Boleeman
[
Today
at 03:45:30 pm]
Some Lazarus Utils N Stuf...
by
Boleeman
[
Today
at 03:39:45 pm]
FPC Unleashed (inline var...
by
Fibonacci
[
Today
at 03:28:03 pm]
AI assisted translation o...
by
schuler
[
Today
at 03:23:01 pm]
Ann: Deinline: a de-inlin...
by
Fred vS
[
Today
at 03:17:40 pm]
Ann: DeCoperators
by
Thaddy
[
Today
at 02:48:13 pm]
Little bit...
by
jamie
[
Today
at 01:04:11 pm]
BAScript - Simple scripti...
by
Ñuño_Martínez
[
Today
at 01:00:21 pm]
NiceGrid component for La...
by
Alexandr R
[
Today
at 11:02:54 am]
Idea to solve a circular ...
by
jamie
[
Today
at 10:55:07 am]
ZeosDB and sqlite3
by
Thaddy
[
Today
at 08:49:46 am]
Status of Fresnel Project...
by
Thaddy
[
Today
at 08:47:30 am]
Help with OLD code
by
Thaddy
[
Today
at 08:17:11 am]
Can /my/ AI help me with ...
by
MathMan
[
Today
at 07:33:14 am]
Lazarus Image Editor
by
Boleeman
[
Today
at 03:46:20 am]
Splitting Picture into Qu...
by
Boleeman
[
Today
at 02:43:50 am]
The ever re-appearing /= ...
by
n7800
[
Today
at 02:13:57 am]
fp-h2pas: New C header tr...
by
BildatBoffin
[April 11, 2026, 07:22:29 pm]
TurboBird IBX
by
maurog
[April 11, 2026, 04:10:32 pm]
Omitting semicolon on las...
by
Xenno
[April 11, 2026, 02:04:31 pm]
I can write your README.m...
by
domasz
[April 11, 2026, 09:53:02 am]
android attack (inc)
by
speter
[April 11, 2026, 04:19:54 am]
[ANN] Unofficial FPC 3.3....
by
440bx
[April 11, 2026, 01:00:04 am]
Track windows cross-platf...
by
dsiders
[April 10, 2026, 07:43:43 pm]
« previous
next »
Print
Pages: [
1
]
Author
Topic: How to disable autoscroll in TRichMemo (Read 465 times)
CM630
Hero Member
Posts: 1674
Не съм сигурен, че те разбирам.
How to disable autoscroll in TRichMemo
«
on:
October 29, 2025, 10:59:28 am »
Is there a way to disable autoscroll in TRichMemo?
This code works in TMemo, but does not in TRichMemo:
Code: Pascal
[Select]
[+]
[-]
try
{Rich}
Memo1
.
Lines
.
BeginUpdate
;
for
i
:
=
0
to
50
do
{Rich}
Memo1
.
Append
(
IntToHex
(
i
)
)
;
finally
{Rich}
Memo1
.
Lines
.
EndUpdate
;
end
;
Logged
Лазар 4,4 32 bit (sometimes 64 bit); FPC3,2,2
CM630
Hero Member
Posts: 1674
Не съм сигурен, че те разбирам.
Re: How to disable autoscroll in TRichMemo
«
Reply #1 on:
October 30, 2025, 09:00:11 am »
I have found a solution, but it only works when the vertical scrollbar is enabled; otherwise
RichMemo1.VertScrollBar.Position;
is always a zero. This post was helpful:
https://forum.lazarus.freepascal.org/index.php?topic=65047.0
Code: Pascal
[Select]
[+]
[-]
procedure
TForm1
.
Button1Click
(
Sender
:
TObject
)
;
var
i
:
integer
=
0
;
v
:
integer
=
0
;
begin
v
:
=
RichMemo1
.
VertScrollBar
.
Position
;
RichMemo1
.
Lines
.
BeginUpdate
;
for
i
:
=
0
to
50
do
RichMemo1
.
Append
(
IntToHex
(
i
)
)
;
RichMemo1
.
ScrollBy
(
0
,
MaxInt
)
;
RichMemo1
.
ScrollBy
(
0
,
-
v
)
;
RichMemo1
.
Lines
.
EndUpdate
;
end
;
«
Last Edit: October 30, 2025, 09:03:23 am by CM630
»
Logged
Лазар 4,4 32 bit (sometimes 64 bit); FPC3,2,2
Print
Pages: [
1
]
« previous
next »
Lazarus
»
Forum
»
Programming
»
Packages and Libraries
»
RichMemo
»
How to disable autoscroll in TRichMemo
TinyPortal
© 2005-2018