When I click on the "X" to close my program, it does not un-initialize. The window closes but the program is still running.
How do I detect that the "X" is clicked?
Event for clicking on "close window button" (X)
-
randomMesh
- Posts: 1186
- Joined: Fri Dec 29, 2006 12:04 am
Re: Event for clicking on "close window button" (X
Just catch button click events in your event receiver and if it is the close button of your window, take appropriate actions.
Or catch the EGET_ELEMENT_CLOSED event of the window.
Or catch the EGET_ELEMENT_CLOSED event of the window.
"Whoops..."
Hi,
how is your code structured? Like this?
MfG
Scarabol
how is your code structured? Like this?
Code: Select all
int main(void)
{
// device =
while (device->run())
{
// MainLoop
}
// when program reach here the [x] button was pressed
saveallmydata();
return 0; // Programm END
}
Scarabol