Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!samsung!brutus.cs.uiuc.edu!psuvax1!xavier!jackiw From: jackiw@cs.swarthmore.edu (Nick Jackiw) Newsgroups: comp.sys.mac.programmer Subject: Re: Movable Modal WDEF Message-ID: Date: 28 Feb 90 20:15:41 GMT References: <39013@apple.Apple.COM> Sender: news@xavier.swarthmore.edu (USENET News System) Reply-To: jackiw@cs.swarthmore.edu (Nick Jackiw) Organization: Visual Geometry Project, Swarthmore College, PA Lines: 51 mjohnson@Apple.COM (Mark B. Johnson) writes: > Movable Modal WDEF is now available via anonymous FTP > on Apple.com (IP 130.43.2.2). You can find it in the > ~ftp/pub/dts/human.interface/goodies directory. Awesome! I got it, I use it, I like it. > The Movable Modal WDEF file is the WDEF described in Human > Interface Note #4, Movable Modal Dialog Boxes. This WDEF > includes all previous system window types and adds two new > variants: > > 5 plain movable modal > 13 (5+8) movable modal with zoom box > I've got a question about this; which may or may not be a bug in the WDEF. (If anyone can confirm that what I'm doing is correct, I'll submit a bug report to Apple.) I want to implement a plain movable modal. The WDEF Resource ID is #128, therefore the ProcID should be (according to IM Vol I) 16*128+5=2053. If I specify 2053 in the DLOG template and add the WDEF to my resource file, GetNewDialog()/ShowWindow() generates exactly what I want--a movable dialog without the zoombox. I handle dragging in my ModalDialog filterProc by detecting mouseclicks, checking FindWindow=inDrag+whichWindow=myDialog, and then DragWindow. I let ModalDialog() field the update events generated when I am dragging the dialog from partially-offscreen to totally-onscreen. Unfortunately, the update-response draws a zoombox. If I move the initial zoomboxless window to the point where half an imaginary zoombox would be offscreen, and then drag back, sure enough--I get the half zoombox drawn in. Am I doing something wrong with my resource numbering? I notice that this behavior also happens if I renumber it to WDEF#0, letting it become responsible for drawing all my window types. (I set procID to 5 in this case, of course.) Help, as always, will heap blessings upon your noble head. -Nick -- +-------------------+-jackiw@cs.swarthmore.edu / !rutgers!bpa!swatsun!jackiw-+ | nicholas jackiw | jackiw%campus.swarthmore.edu@swarthmr.bitnet | +-------------------+-VGP/MathDept/Swarthmore College, Swarthmore, PA 19081--+ "Ah...I've got this CHRONIC pain." _True Believer_