logo       

Re: [Request] Auto scrolling squeak world (was [Enh]Auto Scroll): msg#00726

lang.smalltalk.squeak.general

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

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@xxxxxxxxxxxx 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

Attachment: ResizingWorlds-th.3.cs.gz
Description: GNU Zip compressed data

<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise