Code::Blocks Forums

User forums => Help => Topic started by: ValeV on January 18, 2019, 01:06:29 pm

Title: Close program doesn't work
Post by: ValeV on January 18, 2019, 01:06:29 pm
I am new to C++, CB and wxWidgets and am following some tutorials. My problem is, in some stage of development, 'X' button works fine (the one in top right corner of application window, when I run it). Then I make some change to application, run it again, and 'X' doesn't work anymore. My OnQuit() function has

Code
Close();
event.Skip(TRUE);

in it. Apart from this button, application works as expected. What can be the source of this error (X button not working) ?

EDIT: I remember somewhere to put 'Destroy()' in said function, but it seems like a patch, not a solution.
Title: Re: Close program doesn't work
Post by: Miguel Gimenez on January 18, 2019, 04:11:05 pm
This is a programming question not related to C::B, try asking in the wxWidgets' forum.