Rsizable ScrolledPanel?
I have a scrolled panel in a nested GridBagSizer in a Notebook panel. The attachment shows it after stretching out the main window. I would like to make this so that the scrolled window resizes with the frame. I have read, looked at demo’s, the new book, etc., but can’t understand how to get it to work. If I set either size coordinate of the ScrolledPanel with wx.EXPAND, the scroll bars disappear. Setting its flag = wx.EXPAND doesn’t seem to do anything. Even tried the sizer.AddGrowable[Row,Col] and seems to do nothing. Am I trying something impossible or am I going about it wrong? The closest demos I found used text controls with scroll bars rather than a scrolled panel.
The code is too scattered to send an example. Any guidance will be appreciated.
<<Generate.jpg>>
···
python2.4, wx-2.6.1.0-gtk2-ansi
Ron Shoemaker
Could you describe the sizer structure of the NotebookPanel?
NBPage
- GridbagSizer
- ScrolledPanel
?
···
On 10/25/06, Shoemaker, Ronnie A. Ronnie.A.Shoemaker@usa-spaceops.com wrote:
I have a scrolled panel in a nested GridBagSizer in a Notebook panel. The attachment shows it after stretching out the main window. I would like to make this so that the scrolled window resizes with the frame. I have read, looked at demo’s, the new book, etc., but can’t understand how to get it to work. If I set either size coordinate of the ScrolledPanel with wx.EXPAND, the scroll bars disappear. Setting its flag = wx.EXPAND doesn’t seem to do anything. Even tried the sizer.AddGrowable[Row,Col] and seems to do nothing. Am I trying something impossible or am I going about it wrong? The closest demos I found used text controls with scroll bars rather than a scrolled panel.
The code is too scattered to send an example. Any guidance will be appreciated.
<<Generate.jpg>>
python2.4, wx-2.6.1.0-gtk2-ansi
Ron Shoemaker
To unsubscribe, e-mail:
wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org
–
There is NO FATE, we are the creators.