Closing callback and PtAlert (6.1)

I’ve just installed 6.1,

I would like a PtAlert() box to be displayed just before the application
closes, I’ve tried adding a callback on `Window Closing’, however the
PtAlert is not displayed and the result is nothing happens except I have to
click on the close widget again to shutdown the application.

Is there a better way of doing this?

Simon Platten <simon.platten@brisco-eng.co.uk> wrote:
: I’ve just installed 6.1,

: I would like a PtAlert() box to be displayed just before the application
: closes, I’ve tried adding a callback on `Window Closing’, however the
: PtAlert is not displayed and the result is nothing happens except I have to
: click on the close widget again to shutdown the application.

: Is there a better way of doing this?

Take a look at:

Photon Programmer’s Guide
Window Management
Notification callback
Example: verifying window closure

if you haven’t already done so. If you’ve read it already, and there’s
something wrong or unclear, please post it here.


Steve Reid stever@qnx.com
TechPubs (Technical Publications)
QNX Software Systems

Thank you, after reading the help `carefully’ it worked a treat.

“Steve Reid” <stever@qnx.com> wrote in message
news:9j6ma1$14f$1@nntp.qnx.com

Simon Platten <> simon.platten@brisco-eng.co.uk> > wrote:
: I’ve just installed 6.1,

: I would like a PtAlert() box to be displayed just before the application
: closes, I’ve tried adding a callback on `Window Closing’, however the
: PtAlert is not displayed and the result is nothing happens except I have
to
: click on the close widget again to shutdown the application.

: Is there a better way of doing this?

Take a look at:

Photon Programmer’s Guide
Window Management
Notification callback
Example: verifying window closure

if you haven’t already done so. If you’ve read it already, and there’s
something wrong or unclear, please post it here.


Steve Reid > stever@qnx.com
TechPubs (Technical Publications)
QNX Software Systems