Newsgroups: comp.lang.smalltalk
Path: cantaloupe.srv.cs.cmu.edu!rochester!udel!gatech!howland.reston.ans.net!torn!nott!newbridge.com!newshost.newbridge.com!NewsWatcher!user
From: Jan.Bytesmiths@acm.org
Subject: Re: newbie cursor question
Message-ID: <Jan.Bytesmiths-0305951939190001@138.120.62.117>
Sender: usenet@Newbridge.COM
Reply-To: Jan.Bytesmiths@acm.org
Organization: Bytesmiths, a technical services company
References: <3nu4dr$mnm@newdelph.cig.mot.com>
Date: Wed, 3 May 1995 23:39:19 GMT
Lines: 22

In article <3nu4dr$mnm@newdelph.cig.mot.com>, patnaik@elephant.cig.mot.com
(Anjela Patnaik) wrote:

> I have an application that contains list panes on the left and
> text panes on the right. When I click on an item in the left list
> pane, I'd like the cursor to go to the corresponding right text pane.
> ANy idea on how to do this? I've sent a "changed:" message to make
> the right pane the active pane, but this doesn't seem to move the
> cursor accordingly.

Is this VisualWorks? If so, try something like:
   destination := (builder componentAt: #rightTextPane) widget.
   destination controller cursorPoint: destination bounds center

I do this a lot. I added a method to Cursor called
#animateTo:duringMilliseconds:inSteps: that I use extensively in complex
dynamically generated forms to help draw the user's eye to the next active
area.

 Jan Steinman, Bytesmiths <Jan.Bytesmiths@acm.org>
 2002 Parkside Court, West Linn, OR 97068-2767 USA, +1 503 657 7703
 1025 Grenon #1002, Ottawa, Ontario K2B 8S5 Canada, +1 613 820 9919
