[comp.sys.mac.programmer] Scroll Bars in modal dialogs

vrm@blackwater.cerc.wvu.wvnet.edu (Vasile R. Montan) (11/03/90)

Question:  what is the trick to putting scroll bars in modal dialogs?
I have tried checking the control part in a filter function, but it
seems that the control part is not being properly reported.  Does
the fact that the scroll bar is in the context of a modal dialog somehow
interfere with control part reporting?

Using ResEdit, I have found that most applications seem to initially
define the scroll bar as a user item rather than as a control item.
What kind of things does my code need to do to get a scroll bar up and flying?

(I am aware of what the tech notes say about putting complex controls in
modal dialogs, but like many programmers, I recycle the same code for
different dialogs, and would really prefer not to have to start from
the ground up, duplicating the efforts of the Dialog Manager.)

Thank you for your help!

(If you want to send mail to me, please send it to un020070@vaxa.wvnet.edu
I am not writing from home.)

--Kurisuto