mikeoro@hubcap.UUCP (Michael K O'Rourke) (01/17/89)
Help!! I am trying to write a CDEF and have it mostly working, but I am having one little problem. TrackControl always seems to return a zero when I call it, even when I let go within the control! I have my own drag routine which returns a non zero value if it uses it. Also, my Test procedure in the CDEF returns 129 if the mouse is pressed anywhere in the control. (The control has no seperate parts or indicators). I read some sample CDEF code (Dial CDEF) that said Drag must return -1 to override the CDEF or something from calling the Position procedure. My question is, what or where is the value that is getting returned to TrackControl? How can I get it to return 129 or anything except 0. Just so I know that it was indeed selected. Second question. Directed probably at anyone in Apple. Inside Mac tells about the Disk Driver and using PBControl to initialize 400K and 800K, etc. It even gives a pseudo-example of what a call would look like to read a specific sector from the disk. What I need is the values that I need to feed PBControl to read and write data to the disk at specific sectors. What values go in csParam, for example? How do I tell it to start at a certain sector and read/write 5 sectors? What variable will contain the pointer to the data I'm writing? If you need sample code from the CDEF to help answer the question, I'd be glad to send it. Thanx, Michael O'Rourke Clemson University Disclaimer: Don't need one. After all this is just a question, who's gonna sue me for asking it?