I have a scrollwindow on a panel and I;m trying to have other items such as a grid inside the scrollwindow. Without any sizer the scrollwindow works fine and I can scroll both vertical and horizontal and resize the window. BUt when I add a sizer inside the scrollwindow something strange is happening. First when I launch the application the window is displayed correctly but then when I try to resize the scroll simply dissappears. What do I do wrong here? Is there any flag or switch that need to be activated?
I have a scrollwindow on a panel and I;m trying to have other items such as a grid inside the scrollwindow. Without any sizer the scrollwindow works fine and I can scroll both vertical and horizontal and resize the window. BUt when I add a sizer inside the scrollwindow something strange is happening. First when I launch the application the window is displayed correctly but then when I try to resize the scroll simply dissappears. What do I do wrong here? Is there any flag or switch that need to be activated?
Please create a small runnable sample that shows the problem.
Dear Robin I have created a simple example with a window and two sizers. The problem is that when I launch the program the scroll bars are on the window but then when I re size it the scroll bars disappears. Maybe there are still some flags that I need activate. Please have a look at it and let me know if you find the problem.
I have a scrollwindow on a panel and I;m trying to have other items such
as a grid inside the scrollwindow. Without any sizer the scrollwindow
works fine and I can scroll both vertical and horizontal and resize the
window. BUt when I add a sizer inside the scrollwindow something strange
is happening. First when I launch the application the window is
displayed correctly but then when I try to resize the scroll simply
dissappears. What do I do wrong here? Is there any flag or switch that
need to be activated?
Please create a small runnable sample that shows the problem.
Dear Robin I have created a simple example with a window and two
sizers. The problem is that when I launch the program the scroll bars
are on the window but then when I re size it the scroll bars
disappears. Maybe there are still some flags that I need activate.
Please have a look at it and let me know if you find the problem.
Dear Robin I have created a simple example with a window and two sizers. The problem is that when I launch the program the scroll bars are on the window but then when I re size it the scroll bars disappears. Maybe there are still some flags that I need activate. Please have a look at it and let me know if you find the problem.
Since you are giving the wx.ScrolledWindow a sizer it is taking precedence over the virtual size you implicitly set with SetScrollbars, and since the min size needed by the sizer is smaller than the client size of the scrolled window the scrollbars are removed.
···
--
Robin Dunn
Software Craftsman http://wxPython.org Java give you jitters? Relax with wxPython!