Squeakland.org

Karl Ramberg karl.ramberg at chello.se
Thu May 3 15:39:06 UTC 2001



Roger Whitney wrote:
>    I have only had the time to look at the active essay. One problem
> is the size of my screen. I have a 15 inch LCD. A few of the pages in the
> active essay had text below the bottom of the screen. I had to move the
> morph to see the last few lines of text.

This piece of code will load the project active, ie scaled down in
realtime, 
does not look the best but it works.
Don't thank me, thank Bob Arning :-)

Karl



'From Squeak3.1alpha [latest update: #''Squeak3.1alpha'' of 5 February
2001 update 3928] on 12 April 2001 at
6:23:22 pm'!

!FileList methodsFor: 'file list menu' stamp: 'RAA 4/12/2001 18:22'!
openProjectFromFile
        | theProject |
        "Reconstitute a Morph from the selected file, presumed to be represent
        a Morph saved via the SmartRefStream mechanism, and open it in an
        appropriate Morphic world."

        fileName ifNil: [^self].
        Project canWeLoadAProjectNow ifFalse: [^ self].
        [
                ProjectLoading 
                        openFromDirectory: directory 
                        andFileName: fileName
        ]
                on: ProjectEntryNotification
                do: [ :ex | 
                        theProject _ ex projectToEnter
enterAsActiveSubprojectWithin: ActiveWorld.
                        theProject world showExpandedView.
        ]
! !





More information about the Squeak-dev mailing list