Hello together,
I don't know what I'm doing wrong.
I use a wxGrid component and like to scroll automatically with the SetScrollLineX but the function doesn't work. Do I have to set before something? Or do I have to use the wxScrolledWindow::Scroll(x, y) function but I think then I have to override the event for scrolling to get the actual position.
Thank you for your answer.
Greeting kea_
wxGrid::SetScrollLineX doesn't work. Topic is solved
-
- wxWorld Domination!
- Posts: 1059
- Joined: Sun Dec 30, 2007 6:40 pm
- Location: Canada
Hi kea_,
wxGrid::SetScrollLineX only sets how many pixels to move in the X direction when the user clicks in the scroll bar (not grabbing the thumb and moving it).
If you want to scroll to a specific cell, try wxGrid::MakeCellVisible - see http://docs.wxwidgets.org/2.6/wx_wxgrid ... ellvisible
Hope that helps,
Jim
wxGrid::SetScrollLineX only sets how many pixels to move in the X direction when the user clicks in the scroll bar (not grabbing the thumb and moving it).
If you want to scroll to a specific cell, try wxGrid::MakeCellVisible - see http://docs.wxwidgets.org/2.6/wx_wxgrid ... ellvisible
Hope that helps,
Jim
OS: Vista SP1, wxWidgets 2.8.7.