Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 456
  • Last Modified:

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
0
Marco Gasi
Asked:
Marco Gasi
1 Solution
 
aikimarkCommented:
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

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now