[wxPython-users] wx.StyledTextCtrl GetFirstVisibleLine bug?

Josiah Carlson jcarlson at uci.edu
Sat Aug 19 12:59:27 PDT 2006


You'll probably get more response, etc., if you consult the docs
available at scintilla.org and/or ask on scintilla-interest at lyra.org .

 - Josiah

stefaan <stefaan.himpe at gmail.com> wrote:
> 
> Hello list,
> 
> Suppose you have a control of 4 lines high,
> and the first line is wrapped, taking 3 "lines":
> 
> 1    line1 line1 line1 (a)
>      line1 line1 line1 (b)
>      line1             (c)
> 2    line2             (d)
> 3    line3 line3       (e)
> 
> When the line marked (c) is on
> top of the screen, GetFirstVisibleLine returns 2.
> (in a way this is true, but try to use this number
> for something...)
> 
> All other functions involving line numbers seem to 
> operate on "logical" line numbers.
> 
> Did I misunderstand the wx.StyledTextCtrl API or 
> is it a bug?
> 
> Best regards,
> Stefaan.





More information about the wxpython-users mailing list