03-06-2008 10:15 AM
03-06-2008 11:02 AM
Hi Ed,
You need to have a panel callback installed, and then handle the EVENT_CLOSE event. That event is sent when the user operates the X button. It is then up to you to decide what to do in your code at that point.
There is another alternative that you can use, if you also have a "Quit" button in that panel. You can associate the behavior of the panel's X button with the behavior of the Quit button by setting the ATTR_CLOSE_CTRL attribute on the panel. When you do that, an event is also sent to that button's callback whenever the user operates the X button, so that you don't need to have a panel callback.
Luis
03-06-2008 02:49 PM
03-06-2008 03:03 PM