etsai@hstbme.mit.edu (Eugene C Tsai) (05/31/90)
I have been trying to set up a scroll bar in a modal dialog; however, I seem to be having problems doing so. I have used SetCtlAction((ControlHandle)aControlHandle,(ProcPtr)anActionProc); to set up an action procedure for my scroll bar. Since ModalDialog() calls TrackControl, even events involving the thumb are passed to anActionProc(). With events involving the thumb of my scroll bar (ie a mousedown on it), the program seems to bomb. I guess I could set a filterproc for ModalDialog to screen out events involving the thumb of the scroll bar and consequently using TrackControl to handle the thumb, but that seems like overkill. Are there any suggestions as to a simpler way to handling a scroll bar in a modal dialog. Thanks, Eugene Tsai