Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!bloom-beacon!apple!voder!pyramid!prls!philabs!linus!raybed2!applicon!bambi!peterson!peterson From: peterson@peterson.applicon.UUCP Newsgroups: comp.sys.mac.programmer Subject: Help with controls (please?) Message-ID: <77900011@peterson> Date: 1 Feb 89 18:26:00 GMT Lines: 23 Nf-ID: #N:peterson:77900011:000:1061 Nf-From: peterson.applicon.UUCP!peterson Feb 1 13:26:00 1989 I am having a lot of trouble with defining my own crontrol (CDEF). I I simply am making a horizontal sliding control that linearly produces a value from 0-63. The pixel range of the slider is 2*64-1 (there are two actual pixels for every position except the last). I have defined the control rectangle as the boundry of the slider and am putting a handle to the region of the indicator in the data field of the control record. I assume I can use the default drag and tracking mechanisms. I also am letting ModelDialog call TrackControl. the indicators draw when the Dialog box comes up, but when I try to drag them, I just get a quick flicker (sometimes) of the outline of the indicator (it does not move). Can somebody give me some sample code for a CDEF that is similar and the way they handle ModelDialog? I would really appreciate it! Joe Peterson Schlumberger Technologies Billerica, MA email: peterson@applicon.com Disclaimer: My company has nothing to do with what I say here, nor does it use any other bizarre forms of mind control.