Positioning a morph in a corner

Edgar J. De Cleene edgardec2001 at yahoo.com.ar
Sun Oct 15 09:58:29 UTC 2006


Damien Cassou puso en su mail :

> Hi,
> 
> I would like to create a morph and put it in the top right corner of the
> squeak window ; moreover, I would like it to stay there even when the
> window is resized or the resolution change. How can I do this please ?
> 
> 
> Bye
1 - Raise halo of your morph
2 _ Select debug it
3 - In lower pane of inspector type

self setProperty: #edgeToAdhereTo toValue: #topRight
Select and do it:

Hope this help.

Edgar

PS. As bonus, try the attached morph via drag and drop in Squeak 3.8 or
newer or via fileList in ANY Squeak.
Is a "smart Morph" what should stick to top right corner , showing you the
current Change set and mouse position.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: Info.morph
Type: application/octet-stream
Size: 4143 bytes
Desc: not available
Url : http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20061015/02749d97/Info.obj


More information about the Squeak-dev mailing list