Exiting a display pane
I'm displaying a remote control panel using this
code:
(setf *RCPanel* (make-instance
'remote-control-panel
:window-styles '(:always-on-top
:hides-on-deactivate)
:x 200
:y 100
:title "Remote Control Panel"))
:window-styles '(:always-on-top
:hides-on-deactivate)
:x 200
:y 100
:title "Remote Control Panel"))
(capi:display *RCPanel*)
My question is, if the user closes the display by
clicking on the red x at the upper right of the display window, is there a way
to force this line of code to be executed as the display window is
closing:
(mp:process-kill *sensor-thread*)
Or alternatively is there a way to suppress the
display of the red x - I have an "Exit" button in the display pane I'd prefer
them to use and it does kill the thread on exiting.
As always, thank you for your help!
Bruce.