MapNotify

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

Questions about motif? Contact us

2 posts / 0 new
Last post
MapNotify

Submitted by Anonymous on Tue, 06/12/2001 - 08:24. Developers
Hi,
I want to use the event MapNotify, so when the window is mapped, I can execute a determined function. I`m using XtOverrideTranslations with the main XmForm of the applications, but it doesn`t work. Can anybody help me?

Thank you

ICS_support

I suspect that the XmForm is not getting the MapNotify because it is not a top-level window; the MapNotify is going to the Shell widget which is its parent or ancestor.

In this case, you can use MapNotify on the Shell -- but I believe that it is better to use XmNmapCallback or XmNpopupCallback, if they exist on the Shell widget subclass which you are using. Internally, the Shell catches the map and then notifies your application.

But it`s not clear what you would want to do on a map that you wouldn`t do ordinarily.

And it may not be the map that you want to catch as much as the exposure of the window. You can get the Expose on the XmForm.