Newsgroups: comp.lang.smalltalk
Path: cantaloupe.srv.cs.cmu.edu!bb3.andrew.cmu.edu!newsfeed.pitt.edu!godot.cc.duq.edu!newsgate.duke.edu!news.mathworks.com!newsfeed.internetmci.com!howland.reston.ans.net!EU.net!sun4nl!oce.nl!not-for-mail!mac1-joe.oce.nl!joe
From: Joerka Deen <joe@oce.nl>
Subject: Re: VW 2.5 Rubberbanding, howto?
X-Nntp-Posting-Host: mac1-joe
Content-Type: text/plain; charset=ISO-8859-1
Message-ID: <Dv3w70.Mxs@oce.nl>
X-Xxmessage-Id: <AE1D65C3E001A03F@mac1-joe.oce.nl>
X-Xxdate: Thu, 25 Jul 1996 17:56:19 GMT
Sender: news@oce.nl (The Daily News @ nntp01.oce.nl)
Content-Transfer-Encoding: 8bit
Organization: Oce Nederland BV
X-Newsreader: Nuntius 2.0.1_PPC
References: <mike.1.0B931025@eznet.com>
Mime-Version: 1.0
Date: Thu, 25 Jul 1996 15:54:36 GMT
Lines: 39

In article <mike.1.0B931025@eznet.com> Mike Piotrowski, mike@eznet.com
writes:
>Subject: VW 2.5 Rubberbanding, howto?
>From: Mike Piotrowski, mike@eznet.com
>Date: Sun, 21 Jul 1996 15:47:05 UNDEFINED
>>I want to develop an application with VW 2.5 where the user can stretch the
>size of an object on a canvas.
>
>Any clearly documented code samples or other references would be appreciated.


mike

i can recommend you to read: 

the smalltalk developer's guide to visualworks
tim howard
isbn 013442526x

"a controller method that allows the user to dynamically draw a line on
the controller's view"

getLineFromUser

        |line initialPoint|
        initialPoint := self sensor cursorPoint.
        line := Array with: initialPoint with: initialPoint.
        Cursor crossHair showWhile: [[self sensor redButtonPressed]
                whileTrue: [
                        Screen default
                                displayShape: line
                                at: self sensor globalOrigin
                                forMilliseconds: 50.
                        self viewHasCursor
                                ifTrue: [line at: 2 put: self sensor
cursorPoint]
                                ifFalse: [nil]]]

joerka@plex.nl
