Frage

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.

War es hilfreich?

Lösung

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.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top