Lazarus
Home
Help
TinyPortal
Search
Login
Register
Lazarus
»
Forum
»
Programming
»
Packages and Libraries
»
SynEdit
»
Selected Text get number of lines
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
« previous
next »
Print
Pages: [
1
]
Author
Topic: Selected Text get number of lines (Read 189 times)
eldonfsr
Hero Member
Posts: 615
Selected Text get number of lines
«
on:
August 12, 2026, 09:36:41 pm »
Can be possible from selected text get number of lines..
Logged
440bx
Hero Member
Posts: 6589
Re: Selected Text get number of lines
«
Reply #1 on:
August 12, 2026, 09:42:38 pm »
Quote from: eldonfsr on August 12, 2026, 09:36:41 pm
Can be possible from selected text get number of lines..
Do you mean in the IDE or some specific component like TMemo ?
Logged
FPC v3.2.2 and Lazarus v4.0rc3 on Windows 7 SP1 64bit.
Martin_fr
Administrator
Hero Member
Posts: 12731
Debugger - SynEdit - and more
Re: Selected Text get number of lines
«
Reply #2 on:
August 12, 2026, 09:45:01 pm »
Code: Pascal
[Select]
[+]
[-]
SynEdit1
.
BlockEnd
.
Y
-
SynEdit1
.
BlockBegin
.
Y
+
1
That are lines in the text, not on the screen.
If you use word wrap, and a single line is wrapped visually, then that still just counts as one line in the text;
Logged
Ide Tools, Code completion and more
/
IDE cool features
/
Debugger Status
Martin_fr
Administrator
Hero Member
Posts: 12731
Debugger - SynEdit - and more
Re: Selected Text get number of lines
«
Reply #3 on:
August 12, 2026, 09:47:56 pm »
You probably should read the entire page, but read at least the following 2 sections:
https://wiki.freepascal.org/SynEdit#Logical,_Physical_or_Viewed_caret_position
https://wiki.freepascal.org/SynEdit#Change_text_from_code
Logged
Ide Tools, Code completion and more
/
IDE cool features
/
Debugger Status
Print
Pages: [
1
]
« previous
next »
Lazarus
»
Forum
»
Programming
»
Packages and Libraries
»
SynEdit
»
Selected Text get number of lines
TinyPortal
© 2005-2018