Can somebody help me with getting the linevalues in wxStyledTextCtrl?
I don't mean the line in the file depending on EOLs, but the
wordwrapped lines.
While my caret shows being in line 10 it can technically still be line
0, and I want the value 10 not 0.
The current viewable line can be calculated with GetCurrenttPos,
PointFromPosition and
Lineheight. The first line displayed will be line 0 whereever you are
in the document. So that one is solved.
The values I need are: the virtual line, what will be the same as the
viewable line if the widget is high enough. And I need the total lines
of the document (the wordwrapped pieces, not the technically lines)