TopLevel Callback...

This forum is read only. No new submissions are accepted.

Questions about motif? Contact us

2 posts / 0 new
Last post
TopLevel Callback...

Submitted by Anonymous on Wed, 10/09/2002 - 19:24. Developers
I need to capture the event that occurs when the user clicks the X in the top right corner of the TopLevel Window. I have been able to call XmNpopupDownCallback for shell Windows and dialogs; however, this is not working for the TopLevel.

Thanks in advance for the help.
C. Lamb

ICS_support

Sounds like you want to catch the WM_DELETE_WINDOW message from the window manager. See the discussion in the comp.windows.x and comp.windows.x.motif FAQ lists for how to do this (with extra information on how to use Motif WindowShell callbacks to set a response).