Programmatically scrolling a TSynEdit

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
LVL 31
Marco GasiFreelancerAsked:
Who is Participating?
 
aikimarkConnect With a Mentor Commented:
Can you work around this problem by toggling word wrap before and after you scroll the control contents?
0
 
Marco GasiFreelancerAuthor Commented:
I would like a cleaner solution, but maybe it simply doesn't exist :-)
Your suggestion solved the problem: thank you, aikimark.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.