Problem with wxScrolledWindow + wxGLCanvas
Posted: Wed May 19, 2010 2:27 am
Hey everyone.
I'm trying to have a wxScrolledWindow with a wxGLCanvas for a client area.
So far so good, except for one problem. I've uploaded pictures to illustrate
skiffmapA: The window before any scroll (OK)
skiffmapB: The window after scrolling right 1 "tick" (OK)
skiffmapC: The window after scrolling back left (messed up)
C and A should look identical. It's as if the left column of C simply didn't get refreshed after the scroll.
Things I noticed:
1) this problem persists for scrolling in all directions. I just took the screenshots of scrolling left, but scrolling right/up/down all have the same problem.
2) this problem persists when I click the scroll arrows, or in the 'page scroll' void on either side of the scrollbar, but does not happen when I drag the scroll bar. Dragging the scroll bar has no ill effects at all.
3) if I force refresh the window (dragging it offscreen, or put another window on top of it), it will correct itself.
With #3 in mind I tried catching the wxScrolledWinEvent messages and tried to force a Refresh and Update when scrolls were detected, but that didn't help any.
How can I fix this problem?
I'm using wx 2.8.8.0 on Ubuntu with GCC via Code::Blocks.
Any help appreciated!
I'm trying to have a wxScrolledWindow with a wxGLCanvas for a client area.
So far so good, except for one problem. I've uploaded pictures to illustrate
skiffmapA: The window before any scroll (OK)
skiffmapB: The window after scrolling right 1 "tick" (OK)
skiffmapC: The window after scrolling back left (messed up)
C and A should look identical. It's as if the left column of C simply didn't get refreshed after the scroll.
Things I noticed:
1) this problem persists for scrolling in all directions. I just took the screenshots of scrolling left, but scrolling right/up/down all have the same problem.
2) this problem persists when I click the scroll arrows, or in the 'page scroll' void on either side of the scrollbar, but does not happen when I drag the scroll bar. Dragging the scroll bar has no ill effects at all.
3) if I force refresh the window (dragging it offscreen, or put another window on top of it), it will correct itself.
With #3 in mind I tried catching the wxScrolledWinEvent messages and tried to force a Refresh and Update when scrolls were detected, but that didn't help any.
How can I fix this problem?
I'm using wx 2.8.8.0 on Ubuntu with GCC via Code::Blocks.
Any help appreciated!