[net.micro.mac] problem with TrackControl and controls

edmoy@ucbopal.BERKELEY.EDU (12/10/85)

I've been designing some of my own types of controls and running into lots of
problems.  First, IM is wrong about which routines are called when the
control uses the default draging of indicators (the position and thumb
routines are required).  So finally figuring that out, I've got a slide
control working.

Now I'm working on a dial control that use my own kind of draging of the
indicator.  That all works and, as mentioned in IM, I return non-zero from
the drag routine.  But it seems then that TrackControl() will always return
zero for these controls that do their own dragging (as if no dragging were
done).  I'd like to use this control in a dialog, and I assume that ModalDialog
calls TrackControl, so that ModalDialog will never return when I reposition
the indicator of my control.

I don't see a way around this, without patching rom.  But if anyone has any
suggestion, I would be thankful.

Edward Moy
Academic Computing Services
University of California
Berkeley, CA  94720

edmoy@ucbopal.Berkeley.EDU
ucbvax!ucbopal!edmoy