Disabled scrollbar in wxScrolledWindow Topic is solved

If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
Post Reply
denarced
Knows some wx things
Knows some wx things
Posts: 47
Joined: Sun Dec 04, 2011 7:25 am

Disabled scrollbar in wxScrolledWindow

Post by denarced » Fri Feb 10, 2012 9:45 am

Hello,

I have wxScrolledWindows inside wxChoiceBook.
They are added as pages at runtime.
I am able to scroll with mouse wheel after getting
the focus by pressing tab enough times. I cannot
however use the vertical scrollbar in any way.

Any ideas why ?

denarced
Knows some wx things
Knows some wx things
Posts: 47
Joined: Sun Dec 04, 2011 7:25 am

Solution: disabled scrollbar in wxScrolledWindow

Post by denarced » Fri Feb 10, 2012 10:33 am

I have solved the problem.
Here's hierarchical structure without sizers:
wxPanel
wxChoicebook
wxScrolledWindow
many other wid

The problem was that when adding the wxScrolledWindow instances, their parent
wasn't the wxChoicebook but the wxPanel.

Post Reply