Author Topic: Close program doesn't work  (Read 710 times)

Offline ValeV

  • Multiple posting newcomer
  • *
  • Posts: 13
Close program doesn't work
« 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: [Select]

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.

Offline Miguel Gimenez

  • Regular
  • ***
  • Posts: 458
Re: Close program doesn't work
« Reply #1 on: January 18, 2019, 04:11:05 pm »
This is a programming question not related to C::B, try asking in the wxWidgets' forum.