Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!olivea!decwrl!world!ralph From: ralph@world.std.com (Ralph Lombreglia) Newsgroups: comp.sys.mac.hypercard Subject: How to dismiss a PICT resource shown with "picture" command? Keywords: picture PICT mouseDownInPicture Message-ID: <1991Apr3.130652.12996@world.std.com> Date: 3 Apr 91 13:06:52 GMT Organization: The World Lines: 23 I'm displaying some PICT resources in xwindows using the "picture" xcmd built into 2.0. I want the PICTs displayed in "rect" windows which don't have title bars and (thus no go-away boxes), and so I'm using a mouseDownInPicture handler to dismiss the windows. If I have only one xwindow open, and I know the name, it's no problem: on mouseDownInPicture close window But if I have more than one window, and use a window's name as an argument without also specifying the user's click location (which of course I don't know), nothing happens: on mouseDownInPicture "" close window Any suggestions on how to script this correctly? Ralph Lombreglia ---------------- ralph@world.std.com MCI Mail & BIX: rlombreglia