Adding a second Window...  [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.
tuk1
Experienced Solver
Experienced Solver
Posts: 59
Joined: Sun Oct 08, 2017 9:36 am

Adding a second Window...

Postby tuk1 » Sat Jun 09, 2018 6:39 pm

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.0.3) - Vs2015(v14) - Win7(x64) - DialogBlocks(v5.15.3_Unicode)

User avatar
doublemax
Moderator
Moderator
Posts: 12425
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: Adding a second Window...  [SOLVED]

Postby doublemax » Sun Jun 10, 2018 4:39 pm

Actually i can't think of any other way.
Use the source, Luke!

tuk1
Experienced Solver
Experienced Solver
Posts: 59
Joined: Sun Oct 08, 2017 9:36 am

Re: Adding a second Window...

Postby tuk1 » Sun Jun 10, 2018 5:54 pm

Thanks for confirming DM.
wxWidgets(v3.0.3) - Vs2015(v14) - Win7(x64) - DialogBlocks(v5.15.3_Unicode)


Return to “C++ Development”

Who is online

Users browsing this forum: DavidHart and 12 guests