Catching ALT-F4 in photon

Is it possible for a Photon App to catch the signal when a user presses
ALT-F4? Would like to tidy up before going down.

Thanks,

Hanif.

Hanif Ladha wrote:

Is it possible for a Photon App to catch the signal when a user presses
ALT-F4? Would like to tidy up before going down.

Thanks,

Hanif.

How about using the Pt_CB_DESTROYED callback?

/Johan

Hanif Ladha <hladha@vortek.com> wrote:

Is it possible for a Photon App to catch the signal when a user presses
ALT-F4? Would like to tidy up before going down.

Hm… in your window notify flags, try asking for Ph_WM_CLOSE
and attaching a Pt_CB_WINDOW callback.

-David

QNX Training Services
http://www.qnx.com/support/training/
Please followup in this newsgroup if you have further questions.