User forums > Help

Close program doesn't work

(1/1)

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


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

--- End code ---

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.

Navigation

[0] Message Index

Go to full version