Interactive Story (Newbie Question)
Lic. Edgar J. De Cleene
edgardec2001 at yahoo.com.ar
Mon Jul 21 18:48:31 UTC 2003
On 21/07/03 13:03, "Jack Johnson" <fragment at nas.com> wrote:
> Is there a HyperCard-style trick where you can keep a morph centered in
> the view? That might be a good way to bridge the 640x480 or 800x600
> fixed size but allow for scaling of the Squeak window (or for that
> matter, centering dialogs whether on handhelds or desktops).
>
> -Jack
M _ Morph new openCenteredInWorld.
But not solve scaling problems.
size _ (100 at 100) asPoint * (640 at 480) asPoint / (World extent) asPoint.
Give you extent of m for any possible monitors.
Edgar
More information about the Squeak-dev
mailing list
|