Discussion:
How to show the parent panel?
Hiram Zuñiga
2014-09-11 18:54:11 UTC
Permalink
Hello,

i'm from Mexico so my English is not very good.

I am trying to put the init panel from a child panel, but when pushing the
button in panel 3 shows the another child panel(image:panel 2) and not the
start panel(image:panel 1), my source code is attached

for a better idea of what I want I attached a picture

<Loading Image...>
--
Please read http://www.wxwidgets.org/support/mlhowto.htm before posting.

To unsubscribe, send email to wx-users+***@googlegroups.com
or visit http://groups.google.com/group/wx-users
Xaviou
2014-09-11 22:11:09 UTC
Permalink
Hi.

I didn't read your source code, but here is the best way to do such a thing
(IMO):

You create an horizontal wxBoxSizer witch will contain your 3 panels.
You create the 3 panels, but you show only the first one (the 2 other have
to be hidden)
You add your 3 panels to the wxBoxSizer

When you need to show another panel, juste show it and hide the one that is
actually shown
Then you call "Layout" on the wxBoxSizer

Hope it corresponds to your needs.

Regards
Xav'
Post by Hiram Zuñiga
Hello,
i'm from Mexico so my English is not very good.
I am trying to put the init panel from a child panel, but when pushing the
button in panel 3 shows the another child panel(image:panel 2) and not the
start panel(image:panel 1), my source code is attached
for a better idea of what I want I attached a picture
<https://lh4.googleusercontent.com/-9h2SSJDrPgM/VBHtQaxh1zI/AAAAAAAABSM/JrK6J85Sj9Q/s1600/brincos.png>
--
Please read http://www.wxwidgets.org/support/mlhowto.htm before posting.

To unsubscribe, send email to wx-users+***@googlegroups.com
or visit http://groups.google.com/group/wx-users
John
2014-09-12 03:55:24 UTC
Permalink
Post by Hiram Zuñiga
Hello,
i'm from Mexico so my English is not very good.
I am trying to put the init panel from a child panel, but when pushing
the button in panel 3 shows the another child panel(image:panel 2) and
not the start panel(image:panel 1), my source code is attached
I use wxSimplebook in similar circumstances. Not much else needed to do
except use AddPage and SetSelection.

Regards, John
--
Please read http://www.wxwidgets.org/support/mlhowto.htm before posting.

To unsubscribe, send email to wx-users+***@googlegroups.com
or visit http://groups.google.com/group/wx-users
Loading...