News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

Close program doesn't work

Started by ValeV, January 18, 2019, 01:06:29 PM

Previous topic - Next topic

ValeV

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


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.

Miguel Gimenez

This is a programming question not related to C::B, try asking in the wxWidgets' forum.