I am having trouble getting a pretty simple wxApp to work as I wish.
I have a wxScrolledPanel inside a wxFrame with a menuBar. It looks
like this:
class wxFrame
···
+-------------------------------------
wxMenuBar
+-------------------------------
> class wxScrolledPanel
> (fixed)
> +-----------------------
> > (scrolls)
> +-----------------------
> (fixed) def LoadPanel()
+-------------------------------
def OnOpenFile ... call LoadPanel()
+-------------------------------------
I started with the wx demo ScrolledPanel.py and added widgets,
methods, etc. I then added the menuBar to the Frame. The things I
can't do or cannot find examples are:
1. I have a "LoadPanel" method under the panel but can't get it to
work from the menuBar methods. I've looked at "parent-child" setups
with different classes but nothing works.
2. I want to use buttons to jump to different parts of the scroll but
wxScrolledPanel does not seem to support this. I tried using
wxScrolledWindow (Scroll(x,y)) instead, but could not get the "fixed-
scroll-fixed" effect I need.
The code is quite large or I would have included it. If someone
thinks they have the answer I will try to pare it down to a workable
example. In the meantime the ScrolledPanel demo with a menuBar added
gives the basic idea.
Thanks,
RLRandallx