Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!deimos!phobos.cis.ksu.edu!jxf From: jxf@phobos.cis.ksu.edu (Jerry Frain) Newsgroups: comp.sys.mac.programmer Subject: Maintaining scroll bars for multiple windows. Message-ID: <1990Jan23.190524.3693@deimos.cis.ksu.edu> Date: 23 Jan 90 19:05:24 GMT Sender: @deimos.cis.ksu.edu Reply-To: jxf@phobos.cis.ksu.edu (Jerry Frain) Distribution: usa Organization: Kansas State University, Dept of Computing & Information Sciences Lines: 34 [ Jeez, I can't believe that this is giving me so much trouble... ] I am writing a program (using THINK C 4.0, if anyone cares), which has two windows open simultaneously. Both windows are zoomDocProcs, so I have a set of scroll bars for both. What is the easiest way to know which scroll bars to size when the user resizes a window? I know that I *could* find out which window it is, and then figure out which ControlHandles I used to first set up the windows, but I want to make a generic "UpdateScrollBars" function, passing only a WindowPtr (or WindowPeek) variable to it. I originally thought that I could traverse the list of controls that are attached to the controlList of the WindowRecord, but I can't see an easy way to identify which controls are scroll bars (once I do that, I would look at the contrlRect to determine right or bottom scroll bar). Does the ControlHandle tell which ControlDefProc ID I specified at creation? Any help would be appreciated, in a big way. Thanks in advance, --Jerry -- Jerry Frain -- Professional Student Kansas State University Internet: jxf@phobos.cis.ksu.edu Dept of Computing & Information Sciences BITNET: MUSTANG@KSUVM Manhattan, Kansas UUCP: ...!{rutgers|textbell}!ksuvax1!phobos.cis.ksu.edu!jxf