Constraining resize/creation behavior

Bijan Parsia bparsia at email.unc.edu
Thu Nov 20 00:11:51 UTC 2003


On Wed, 19 Nov 2003, Ned Konz wrote:
[snip]
> I'm not sure what you're asking here.

For mercy and enlightenment :)

> What exactly are you trying to do?

I want to create and resize morphs from user mouse input within a set
bounds.


> You can make Morphs with any bounds you like, including ones outside their
> owners.

I want it only within, if not their owners, within a fixed bounds.

> You can tell the parents not to clip when drawing if you want.

This I figured out. And I want that for some things. But I also want the
resizing to just stop when it hits one of the limits.

> You could just make all your region shapes submorphs of the World.

I don't get what this gets me...

> Assuming you're not going to use halos to do the resizing

I was aiming for that, but could dump it.

> (it's probably best
> not to use the stock halos at all in a simple app targeted at end users who
> aren't doing eToys), resizing is under your control; you would be following
> the Hand and resizing/moving the Morph accordingly.

Hmm. Ok.

> And I understand your fear of HandleMorph, but it's there already, and pretty
> much works. You just have to fill in your own code for the resizing.

Yeah, I got this, i was just worried that I had gotten too far afield and
missed something obvious.

[snipped code]

Thanks!

Cheers,
Bijan Parsia.




More information about the Squeak-dev mailing list