[wx-dev] Re: How to include dialog contents in main frame window
Shriram Bhat
shriramnb at gmail.com
Sun Mar 23 23:50:01 PDT 2008
Hi Bryan,
2 instances of the panel will not be shown at the same time. Only main
window will be shown.
I will explain my scenario.
say in my application, student toolbar button click shows student info,
teacher toolbar button click shows teache'r info in main window. These
controls i have created in 2 different dialogs namely studentDlg and
teacherDlg.
Now when i click student toolbar button, how to show student dialog controls
in main window?
What calls i need to use?
Can you please let me know how to handle this?
Thanks,
Shriram
On 3/23/08, Bryan Petty <bryan at ibaku.net> wrote:
>
> On Sun, Mar 23, 2008 at 9:24 PM, Shriram Bhat <shriramnb at gmail.com> wrote:
> > MyDlg *tmpDlg =3D new MyDlg(NULL);
> > if(tmpDlg)
> > {
> > MainWndPanel->AddChild(tmpDlg->DlgPanel);
> > tmpDlg->DlgPanel->SetParent(MainWndPanel);
> > }
>
> Sorry, I didn't mean that it would be possible to show the same window
> instances (and controls) in two windows at the same time. What you
> accomplish by adding your controls to a single panel is the ability to
> create two identical, but separate panels for which each control built
> for the same purpose will not be updated in sync when one control is
> changed by the user, this is still your responsibility to handle.
>
> Was your intention to have the same instance of your panel shown in
> two separate windows, or just the same layout with separate control
> instances?
>
> Regards,
> Bryan Petty
> _______________________________________________
> wx-dev mailing list
> wx-dev at lists.wxwidgets.org
> http://lists.wxwidgets.org/mailman/listinfo/wx-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.wxwidgets.org/pipermail/wx-dev/attachments/20080323/72399=
542/attachment.htm
More information about the wx-dev
mailing list