Newsgroups: comp.lang.smalltalk
Path: cantaloupe.srv.cs.cmu.edu!bb3.andrew.cmu.edu!newsfeed.pitt.edu!gatech!news.mathworks.com!fu-berlin.de!zrz.TU-Berlin.DE!isst.fhg.de!berlin.fhg.de!news.fhg.de!blackbush.xlink.net!ins.net!heeg.de!gustav!hmm
From: hmm@gustav (Hans-Martin Mosner)
Subject: Re: [VW2.5] a scrolling view
Message-ID: <DwFIFK.J4@heeg.de>
Sender: uucp@heeg.de
Organization: Georg Heeg Objektorientierte Systeme, Dortmund, FRG
X-Newsreader: TIN [version 1.2 PL2]
References: <4va1cl$a2i@loki.tor.hookup.net>
Date: Tue, 20 Aug 1996 09:02:08 GMT
Lines: 33

Dennis Smith (quenton@Cherniak.ON.CA) wrote:
: I am creating a view-holder widget in mt ApplicationModel
: (from the Palette).

: I then install custom view.  My view has specific bounds,
: but the scroll bars do not seem to reflect my custom
: view's bounds relative to the widget bounds, what
: am I doing wrong?

: My custom view responds to "bounds" with a Rectangle
: of (0@0) extent: size (size is the size of my view content).

You should implement #preferredBounds.
The #bounds method should normally not be implemented, or it should
use super bounds and modify that. Look at VisualPart>>bounds
and SequenceView>>bounds to see contexts.

: I want now to scroll to get the whole thing.  THe scroll bars
: seem to remain at the default that is displayed when I create
: the view-holder widget.



: ------------------------------------------------------------------------------
: Dennis Smith, quenton@Cherniak.ON.CA, UUCP: ..!gts!cherniak!quenton            
: +1 905 771 7011, FAX +1 905 771 6288                                           
: Cherniak Giblon 10 Commerce Valley Dr. E. #400, Thornhill, Ont. CANADA L3T 7N7 

--
+--- Hans-Martin Mosner -------- Senior Smalltalk Guru ---+
| These opinions are entirely ficticious.  Any similarity |
| to real opinions is purely coincidental and unintended. |
+--- <hmm@heeg.de> ------ URL:http://www.heeg.de/~hmm/ ---+
