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.
I created an option in a menu bar to open a particular type of frame. I am having trouble opening the frame, I thought I could use Settopwindow and show however those commands are in myApp.
SetTopWindow() is not really necessary. That just sets the "main" window. This mean that when that window gets destroyed, the application will terminate.
You can also access the unique wxApp instance through wxTheApp from anywhere. (z.B: wxTheApp->SetTopWindow(...) )
evstevemd wrote: ↑Fri Aug 02, 2019 6:52 pm
What are splits?
Also use Bind instead of Connect
splits are window splits oops, I created functions called On two and so on to call for a frame that has a split-screen. splits is the nickname i gave it i guess sorry
I tried using bind and the same output comes out- no matter which option i click the same split screen comes up
Last edited by bandali99 on Fri Aug 02, 2019 7:03 pm, edited 1 time in total.
bandali99 wrote: ↑Fri Aug 02, 2019 6:56 pm
splits are window splits oops, I created functions called On two and so on to call for a frame that has a split-screen. splits is the nickname i gave it i guess sorry
Please put a minimal code describig what you are doing. We can't peep on your machine to see what you are doing!
bandali99 wrote: ↑Fri Aug 02, 2019 6:56 pm
I tried using bind and the same output comes out- no matter which option i click the same split screen comes up
The advice was not for solving this issue. Avoid connect and event tables. Always use Bind
Chief Justice: We have trouble dear citizens! Citizens: What it is his honor? Chief Justice:Our president is an atheist, who will he swear to?
void SimpleMenu::Ontwo(wxCommandEvent & event)
{
wxFrame* frame = new twosplit(NULL); //change four to three or two to change layout
frame->Show(true);
}
bandali99 wrote: ↑Fri Aug 02, 2019 6:41 pm
Awesome the code runs with no error, however, when I click two split, three or four the program opens only the 4 split no matter the option...