Path: utzoo!attcan!uunet!tut.cis.ohio-state.edu!rutgers!caip.rutgers.edu!shuang From: shuang@caip.rutgers.edu (Shuang Chen) Newsgroups: comp.windows.x Subject: Using XtDestroyWidget Keywords: XtDestroyWidget Message-ID: Date: 3 Jun 90 03:32:25 GMT Organization: Rutgers Univ., New Brunswick, N.J. Lines: 14 I just started to do X programming, so maybe this is a simple question to you X experts. I'd appreciate any helps. The question is: I want a window, say a top level widget and its childen, removed corresponding to a button release. I added a procedure which uses XtDestroyWidget(toplevel) as a call back function to button release. But when the button was pressed and released the window didn't get disappeared (though its childen stoped) until the program finished. Where is the problem? Thanks in advance, shuang