Page 1 of 1

Closing wxFrame

Posted: Tue Sep 11, 2018 2:02 pm
by nona
Hello All,

I have a program that has login frame and another dashboard frame. My program logic is after loginned the dashboard frame will appear and the login page should be closed. I am using the code below to do it but when I close the dashboard frame it is not closing the proper way I guess because I am hiding the login page and did not close it? Is there any way to close all hidden frames?

Code: Select all

Dashboard* main = new Dashboard(this);
 main->Show();
 Hide();

Re: Closing wxFrame

Posted: Tue Sep 11, 2018 3:46 pm
by nona
I got my problem fixed by creating the dashboard frame not as a login child then closed the login.

Code: Select all

 Dashboard* main = new Dashboard(0); //Just do not create a frame as a child that works fine
            main->Show();
            Close();