Question

I am still working on my text editor, and now I want to make it run faster. So I thought I may somehow get currently visible text, and parse it as I want. So is there a way to get currently visible lines?

P.S. Or maybe there is another way to increase StyledTextCtrl's performance? Thanks.

Was it helpful?

Solution

Use GetFirstVisibleLine() to determine the first visible line. Lines are numbered starting at zero.

Use LinesOnScreen() to determine how many lines are visible on the screen.

You can use GetLine(line) to get a string of an individual line.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top