Closing wxFrame  [SOLVED]

This forum can be used to talk about general design strategies, new ideas and questions in general related to wxWidgets. If you feel your questions doesn't fit anywhere, put it here.
nona
Knows some wx things
Knows some wx things
Posts: 32
Joined: Fri Apr 20, 2018 2:49 pm

Closing wxFrame  [SOLVED]

Postby nona » Tue Sep 11, 2018 2:02 pm

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();

nona
Knows some wx things
Knows some wx things
Posts: 32
Joined: Fri Apr 20, 2018 2:49 pm

Re: Closing wxFrame

Postby nona » Tue Sep 11, 2018 3:46 pm

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();


Return to “General Development”

Who is online

Users browsing this forum: No registered users and 5 guests