Solved

Programmatically scrolling a TSynEdit

Posted on 2014-04-27
2
441 Views
Last Modified: 2014-04-28
Hi all.

To scroll a TSynEdit to a specified line, I use TopLine property.  It works fine except when WordWrap is set to True.

How can I solve this?

Thanks in advance.
Marco
0
Comment
Question by:Marco Gasi
2 Comments
 
LVL 45

Accepted Solution

by:
aikimark earned 500 total points
ID: 40026337
Can you work around this problem by toggling word wrap before and after you scroll the control contents?
0
 
LVL 31

Author Closing Comment

by:Marco Gasi
ID: 40026844
I would like a cleaner solution, but maybe it simply doesn't exist :-)
Your suggestion solved the problem: thank you, aikimark.
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Machine not responding during CopyFile() 3 104
Delphi: how to send PJL commands to printer 3 109
Help on project with Soap 10 57
Graphics32 under Delphi 10.1 Berlin 2 105
This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

820 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question