Ending a dialog from a callback

I am using ApCreateModule() to display a dialog created in Photon, in some
circumstances I would like to terminate the dialog from within callbacks.
How do I do this safely and still get the `Window Closing’ callback to be
called?

Sy

After reading the help, PtDestroyWidget does the job nicely.

“Simon Platten” <simon.platten@brisco-eng.co.uk> wrote in message
news:9j1hn8$64u$1@inn.qnx.com

I am using ApCreateModule() to display a dialog created in Photon, in some
circumstances I would like to terminate the dialog from within callbacks.
How do I do this safely and still get the `Window Closing’ callback to be
called?

Sy