peterson@peterson.applicon.UUCP (02/02/89)
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.
peterson@peterson.applicon.UUCP (02/03/89)
I solved my problem (apperently there are some inconsitancies in IM). You DO need a posCntl section in your CDEF even if you use their Drag scheme. You also need a thumbCntl. Oh well, deciphering this thing can be interesting!!! 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.