Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!ut-sally!husc6!mit-eddie!uw-beaver!tektronix!tekig!tekig4!bradn From: bradn@tekig4.TEK.COM (Bradford Needham) Newsgroups: comp.sys.mac Subject: Custom Dragging? Message-ID: <1462@tekig4.TEK.COM> Date: Mon, 4-May-87 19:50:48 EDT Article-I.D.: tekig4.1462 Posted: Mon May 4 19:50:48 1987 Date-Received: Tue, 5-May-87 07:12:06 EDT Reply-To: bradn@tekig4.UUCP (Bradford Needham) Distribution: world Organization: Tektronix, Inc., Beaverton, OR. Lines: 23 Keywords: custom dragcntl control How do you implement custom dragging in a custom control? Inside Macintosh's description is either misleading or just wrong (I can't tell which); Macintosh Revealed says nothing about custom controls; I haven't seen or heard of a technical note on the subject -- I'm at my wit's end! Using Aztec C, I've successfully built custom controls containing fancy drawCntl, testCntl, calcCRgns, initCntl, dispCntl, posCntl, and thumbCntl routines, but the workings of dragCntl escape me. The symptom I get is that if my dragCntl routine returns a nonzero value (to tell the control manager that I'm doing custom dragging), TrackControl returns 0 (saying that the mouse was released outside any interesting part of the control). Looking at the Inside Macintosh description of custom dragging, I don't see how the necessary information can possibly be communicated between TrackControl and a custom control. Has anyone successfully built custom dragging? How did you do it? Thanks, Brad Needham