Path: utzoo!attcan!uunet!zaphod.mps.ohio-state.edu!unix.cis.pitt.edu!dsinc!netnews.upenn.edu!grad1.cis.upenn.edu!gilbert From: gilbert@grad1.cis.upenn.edu (Michael Gilbert) Newsgroups: comp.sys.mac.programmer Subject: Scroll Bars using Think C Summary: Can't get them to work, resizing Message-ID: <31867@netnews.upenn.edu> Date: 29 Oct 90 03:06:51 GMT Sender: news@netnews.upenn.edu Reply-To: gilbert@grad1.cis.upenn.edu (Michael Gilbert) Organization: University of Pennsylvania Lines: 30 I've been having trouble using scroll bars in a Think C program. They used to work, but... The problem is that is that when I re-size a window, I often will change it's contents using SetOrigin. Once I do this, I call MoveControl and SizeControl for my scroll bars to move them into the right places, relative to the window's new coordinate system. This seems to work fine, as when the window is re-drawn, the controls are put into their correct places. However, MouseDowns events in the scroll bars are no longer being registered. Strangely, sometimes when I click in strange places in the window, the scroll bars will indeed act up. I am converting my points using GlobalToLocal ( &(thePoint) ); but I can't figure this one out. Any help appreciated... =============================================================================== | Call me "Kelly" | #include | |-----------------------------------------------------------------------------| | _ _ _ | Better the pride that resides, | | ' ) ) ) / | In a citizen of the world, | | / / / o /_ _ | Than the pride that divides, | | / ' (_<_/ <_