[Request] Auto scrolling squeak world (was [Enh]Auto Scroll)

Torge Husfeldt squeak-dev at lists.squeakfoundation.org
Fri Sep 27 13:20:17 UTC 2002


Dies ist eine mehrteilige Nachricht im MIME-Format.
--------------57B87F6266265DAEDC6F3339
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Hi Thorsten and all,

I looked into it a bit and dind't quite succeed.
The problem i had is that my ScrollRegion won't forward mouse events in the way that TransformMorph does. This i should fix anyway because without it the uses are somewhat limited.
My way of proceeding:
- Insert a hook in DisplayScreen class>>checkForNewScreenSize(hopefully the same method is called on startUp as on resize)
- In the hook
  *check for shrinking size
  *check for Morphs outside new bounds(other than Flaps
  * reproduce the code from: Morph>>inATwoWayScrollPane.

Now all non-flap morphs are inside a TwoWayScrollPane with the ScrollBars partly hidden by the flap tabs.
The user can choose to enable auto scroll but will no longer be able to click on anything(to be fixed).

changeset attached,
Torge

P.S.: Thanks for trying my cs and apologies for the rather rude tone of my last message. Just a little frustrated.

Torsten.Bergmann at phaidros.com wrote:
> 
> Hi Torge and all,
> 
> it works for me in a 3.2 alpha image 4913. Havent tested it
> in 3.3.alpha.
> 
> It's nice - maybe we use it to solve a common problem:
> 
> When one uses Squeak on a machine with 1024x768 and have some
> morph's at the bottom right corner of the screen he's/she's
> not able to access them on a machine with a smaller screen
> (800x600). It's the same problem if you work full screen with
> Squeak and change to the smaller window mode later.
> 
> Maybe the standard world background is modified to have
> the AutoScroll functionality, so if we move the mouse to
> the squeak windows border region it is checked if the
> world is larger.
> 
> What do you all think?
> Bye
> Torsten
--------------57B87F6266265DAEDC6F3339
Content-Type: application/x-gzip;
 name="ResizingWorlds-th.3.cs.gz"
Content-Transfer-Encoding: base64
Content-Disposition: inline;
 filename="ResizingWorlds-th.3.cs.gz"

H4sIAAAAAAAAAI1WXXPTRhR99oP+w43z4JiBEALlQ3zMmKQZWgbI4DA8uCGzkq6trVe7YneF
CaX/vWdXimUntPQlkXU/95xz72p0Yk1F088Ni+X9/cOFq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M3orCWw9Q+RPakX9B7+GCbFBDpMVUPx2Oop7f0VMehijZULqf++faWL
cUBgAv1oo++0SLR6mkugqCNXQbctrtcZctcp6hvqiHi2IbctUkL7nf4u6GxlPsap6XgJQb29
TZX2mZ5iSWS4zdh+lIUvUzronV3e7gISRYFztXima2Q3HNm3BY8Zq2LDAOzDMoioxWcqhF3y
1T84RhPyx5RpN0b7cfns/fTCurGRxvT8Oe39n4tuvIbwP27VVuav+fIHtdZ3azrTUp2Hi3N4
ilvexVs+TSZF2FP1eqiHydaAF0X/M/3hesixORfQGAPy3b3RgqExoUZjrMG5aBRInIeFQBna
x2J7xapOR1gJICNICbISG18klYACVxgYs2oXJaRWiSJ+Xpg7LdPw++PWrVubnyf4OVpJXx69
d+HL4B+qBeMUsgkAAA==
--------------57B87F6266265DAEDC6F3339--




More information about the Squeak-dev mailing list