Adding a second Window... Topic is solved

If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
Post Reply
tuk1
Earned some good credits
Earned some good credits
Posts: 114
Joined: Sun Oct 08, 2017 9:36 am

Adding a second Window...

Post by tuk1 »

I have few ideas how to go about this, but don't want to waste time going down the wrong road...

Currently all the UI controls are on a single wxFrame, lets call it Main_Frame, & I would like to add another wxFrame, lets call it Frame1.

Frame1 will be launched from a Main_Frame menu item and will be used to display & manage all the user settings.

Should I just create a completely separate wxFrame for Frame1, then make Frame1 a member of Main_Frame, so when the Main_Frame Menu item calls its event handler it can simply access its own member to show Frame1 and to get/set the user settings vars etc?

What is the usual way to go about this?
wxWidgets(v3.2.2.1) - Vs2022(v143) - Win10(x64) - DialogBlocks(v5.16.5_Unicode)
User avatar
doublemax
Moderator
Moderator
Posts: 19115
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: Adding a second Window...

Post by doublemax »

Actually i can't think of any other way.
Use the source, Luke!
tuk1
Earned some good credits
Earned some good credits
Posts: 114
Joined: Sun Oct 08, 2017 9:36 am

Re: Adding a second Window...

Post by tuk1 »

Thanks for confirming DM.
wxWidgets(v3.2.2.1) - Vs2022(v143) - Win10(x64) - DialogBlocks(v5.16.5_Unicode)
Post Reply