Hi Steve,
On 4/14/2014 17:40, steve wrote:
> Sir,
No Sir needed, Werner will do:-)
> I used the inspection tool, when I highlight the first child panel , I
> see that it consumes all main window space (it has red rectangle when
> I press highlight button). On the other hand, when I try yo highlight
> second child panel, I don't see any red rectangles, although the
> second child panel is listed under the inspection tree.
That indicates that your real code does something different then the
code you showed us. I replaced a custom class you had used with a
wx.Panel as the custom class was not included, maybe it uses up too much
space and so there isn't any for the second panel.
You might want to use e.g. a wx.Splitter to contain the two panels to
give the user more control over how space is allocated.
>
> When I look at the sizes of panels, I see that parent panel has size
> (840,250), and the position of second child panel is (920,40). Is it a
> problem?
That could be the problem, but it sounds strange to me. Are you sure
the parenting is correct, i.e. does it show in the WIT as you expect it
to be? Maybe do a parentpanel.Layout() after you added the second child
panel.
If you still don't see it do a sample application and I or someone else
here will be able to help you.
Werner