Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!uunet!clyde.concordia.ca!ccu.umanitoba.ca!guelzow From: guelzow@ccu.umanitoba.ca (Andreas J. Guelzow) Newsgroups: comp.sys.mac.programmer Subject: Re: Think C CPanoramas Message-ID: <1991Jan6.005900.28231@ccu.umanitoba.ca> Date: 6 Jan 91 00:59:00 GMT References: <1991Jan4.065642.13087@morrow.stanford.edu> Organization: University of Manitoba, Winnipeg, Canada Lines: 28 In article <1991Jan4.065642.13087@morrow.stanford.edu> craig@pangea.Stanford.EDU (Craig Jarchow) writes: >I have an instance of the CPane class which is attempting to resize its >enclosing CPanorama. To do this, my CPane object issues the following >messages to the CPanorama: > > ((CPanorama *)itsEnclosure)->ResizeFrame(&deltaRamaRect); > ((CPanorama *)itsEnclosure)->GetFrame(&theRamaFrame); > ((CPanorama *)itsEnclosure)->SetBounds(&theRamaFrame); > >The CPanorama's frame seems to be properly sized by these calls, but my >scroll bars go blank and are inoperative. > >Any ideas what I am doing wrong? > After these calls the Frame of the Panorama is equal to its bounds, as a result there is no reason to scroll and the scrollbars will be deactivated. Obviously the programme does what you tell it to do... Now what did you plan to do? If you only want to change the frame (i.e. what is visible) then don't touch the bounds. If you change the bounds then you are also adjusting the real size of the panorama! >Thanks, >Craig. You are welcome. Andreas Guelzow