Path: utzoo!attcan!uunet!seismo!dimacs.rutgers.edu!mips!sgi!shinobu!odin!sgihub!dragon!eukanuba.wpd.sgi.com!mikey From: mikey@eukanuba.wpd.sgi.com (Mike Yang) Newsgroups: comp.windows.x.motif Subject: Re: XmNmapCallback??? Message-ID: <1990Oct23.195354.1978@relay.wpd.sgi.com> Date: 23 Oct 90 19:53:54 GMT References: <1990Oct22.183455.27968@wrl.dec.com> Sender: news@relay.wpd.sgi.com ( CNews Account ) Reply-To: mikey@sgi.com Organization: Silicon Graphics, Inc. Lines: 19 In article <1990Oct22.183455.27968@wrl.dec.com>, pjs@basalt.pa.dec.com (Philip Schneider) writes: |> I've got a Motif application that uses a drawing area widget. I'd like |> to have a callback routine called when the window associated with that |> widget is mapped. Unfortunately, I seem unable to accomplish this -- the |> attempt to specify a map callback routine is met with an error message : |> |> "Warning: Cannot find callback list in XtAddCallbacks" |> |> Is there any way to get a callback when a widget's window is mapped? |> Any help would be appreciated. . . :-) XmNmapCallback is only supported in some of the widgets, like XmBulletinBoard. But you can always use XtAppAddEventHandler with StructureNotifyMask and check if the event which triggered the handler is MapNotify. ----------------------------------------------------------------------- Mike Yang Silicon Graphics, Inc. mikey@sgi.com 415/335-1786