From: Milind G. <mil...@gm...> - 2012-08-29 18:48:36
|
Hi, I have 2 wxGrid windows side by side and I want to synchronize the scroll on the 2 windows. The scroll event works fine but when I read the scroll position of the window and set the scroll on the other window it does not sync up. There is a lag. It seems that the actual scroll happens after my event handler is processed so my other window always gets to the position where the 1st one was before. Is there a way to let the scroll happen and then read the scroll position? The wxWidgets forum said that there is a hidden function called HandleOnScroll, which I tried but it does not work in wxLua. Is there any other way? Thanks, Milind |