From: Paul K <pau...@ya...> - 2013-02-25 18:31:08
|
In the best tradition of self-answering, it turned out that GetLineVisible doesn't do what I need: it only checks against whether the line is hidden because of folding (not if it's outside of the visible area, which is what I'm looking for). I don't see any other API method that does this, so I calculate it myself using GetFirstVisibleLine, LinesOnScreen, and DocLineFromVisible. Paul. On Sun, Feb 24, 2013 at 10:10 PM, Paul K <pau...@ya...> wrote: > Hi John, > > Thank you for adding wxAuiToolBar to wxlua. One short question on > GetLineVisible. According to the documentation it should return "1 if > the passed in line is visible or 0 if it is not". For some reason, no > matter what I pass, I always get back "true". Is it possible that > there is some bug in the conversion of numbers wxlua gets from > wxwidgets/Scintilla? Thank you. > > Paul. |