ScrollWindow disappear when resizing

Hi,

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?

Thank you very much,

jupan ghe wrote:

Hi,

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.

http://wiki.wxpython.org/index.cgi/MakingSampleApps

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!

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.

Thank you very much,

test_scroll.zip (2.48 KB)

···

On 2/23/07, Robin Dunn robin@alldunn.com wrote:

jupan ghe wrote:

Hi,

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.


http://wiki.wxpython.org/index.cgi/MakingSampleApps


Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!


To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail:
wxPython-users-help@lists.wxwidgets.org

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.

Thank you very much,

App1.py (429 Bytes)

Frame1.py (1.94 KB)

jupan ghe wrote:

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!