adding a sizer in wxScrolledPanel

Folks

I'm trying to add a control to a sizer in a wxScrolledPanel using
a pull-down menu. I'm having difficulty and wonder if there are
any examples. During my attempts, I got a message saying that the
C++ part of the sizer I had saved as an attribute of the scrolled
panel class was dead. Is this a problem?

Nigel

···

--
Nigel W. Moriarty
Building 4R0230
Physical Biosciences Division
Lawrence Berkeley National Laboratory
Berkeley, CA 94720-8235
Phone : 510-486-5709
Fax : 510-486-5909
Email : NWMoriarty@LBL.gov
Web : CCI.LBL.gov

Nigel Moriarty wrote:

Folks

I'm trying to add a control to a sizer in a wxScrolledPanel using
a pull-down menu. I'm having difficulty and wonder if there are any examples. During my attempts, I got a message saying that the
C++ part of the sizer I had saved as an attribute of the scrolled
panel class was dead. Is this a problem?

Yeah, the sizer you saved a reference to is no longer in use and has
been destroyed. Any ideas what might have done that? Do you set
another sizer on the window at any time? Does window.GetSizer give you
anything usable?

···

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

Thank you Robin. I was inadvertently setting the sizer to the same
one twice.

Nigel

···

On Wed, 22 Oct 2003 13:27:24 -0700 Robin Dunn <robin@alldunn.com> wrote:

Nigel Moriarty wrote:
> Folks
>
> I'm trying to add a control to a sizer in a wxScrolledPanel using
> a pull-down menu. I'm having difficulty and wonder if there are
> any examples. During my attempts, I got a message saying that the
> C++ part of the sizer I had saved as an attribute of the scrolled
> panel class was dead. Is this a problem?

Yeah, the sizer you saved a reference to is no longer in use and has
been destroyed. Any ideas what might have done that? Do you set
another sizer on the window at any time? Does window.GetSizer give you
anything usable?

--
Nigel W. Moriarty
Building 4R0230
Physical Biosciences Division
Lawrence Berkeley National Laboratory
Berkeley, CA 94720-8235
Phone : 510-486-5709
Fax : 510-486-5909
Email : NWMoriarty@LBL.gov
Web : CCI.LBL.gov