Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!uwm.edu!gem.mps.ohio-state.edu!sunybcs!boulder!tramp!ewing From: ewing@tramp.Colorado.EDU (EWING DAVID JAMES) Newsgroups: comp.sys.mac.programmer Subject: Re: Think class lib - question about CPanorama and CScrollPane Message-ID: <14193@boulder.Colorado.EDU> Date: 23 Nov 89 00:24:04 GMT References: <7532@viscous.sco.COM> Sender: news@boulder.Colorado.EDU Reply-To: ewing@tramp.Colorado.EDU (EWING DAVID JAMES) Organization: University of Colorado, Boulder Lines: 29 In article <7532@viscous.sco.COM> jamesm@sco.COM (James M. Moore) writes: > >I'm having some problems with the CScrollWindow class. I'm not >getting any response to clicks on the scrollbars. I've stepped >through CView::DispatchClick, and it looks like I'm just not getting >the scroll bars back from CView::FindSubview. I've looked at what's >done in the Art example, and the CClipboard, but it looks like I'm >doing basically the same thing. I'm obviously getting something >wrong, but I just don't see it. > >The routine gets called from my document class like so: > > w->IClassWindow(30774, FALSE, gDesktop, this, aClass); Hmm. This seems very confusing. I'm not sure what you're trying to do in your initialization class. Most of it looks like it belongs in your document's initialization method. It looks like your trying to have CScrollWindow act as a window and a director. For instance, you init the scrollPane variable with "this" for both its supervisor and its enclosure. I'm pretty sure that CWindow assumes that its supervisor is a decendent of CDirector, which may cause your implementation to crash eventually. I must admit tha I haven't quite figured out why your clicks haven't been dispatched properly, but I though that what I've just said might give you a clue. Good Luck. Dave Ewing ewing@tramp.colorado.edu (128.138.238.33) ..!hplabs!boulder!onecom!tyvax!iftech!dave (My Mac IIx running uupc & MacOS!) AppleLink: D2408 (D2408@applelink.apple.com)