Вопрос

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.

Это было полезно?

Решение

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.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top