Login  Register

Re: Customizing Magritte Morphic Forms

Posted by Sean P. DeNigris on Jan 01, 2012; 10:27pm
URL: https://forum.world.st/Customizing-Magritte-Morphic-Forms-tp4251570p4251729.html

Tudor Girba-2 wrote
Here is the code from the rendering in Glamour:
With this approach:
morph := anAddress asMorph
                addButtons;
                morph.
               
        scrollPane := GeneralScrollPane new.
        scrollPane changeScrollerTableLayout.
        scrollPane scrollTarget: morph.
        scrollPane layoutFrame: (LayoutFrame fractions: (0 @ 0 corner: 1 @ 1)).
        scrollPane openInWindow

I got an emergency evaluator when I clicked "Save":

THERE_BE_DRAGONS_HERE
SubscriptOutOfBounds: 1
1 January 2012 5:24:26 pm

VM: Mac OS - intel - 1072 - Croquet Closure Cog VM [CoInterpreter VMMaker-oscog-EstebanLorenzano.139] 21.0
Image: Pharo1.3 [Latest update: #13320]

Array(Object)>>errorSubscriptBounds:
        Receiver: #()
        Arguments and temporary variables:
                index: 1
        Receiver's instance variables:
#()

Array(Object)>>at:
        Receiver: #()
        Arguments and temporary variables:
                index: 1
        Receiver's instance variables:
#()

Array(SequenceableCollection)>>first
        Receiver: #()
        Arguments and temporary variables:

        Receiver's instance variables:
#()

GeneralScrollPane>>scrollTarget
        Receiver: a GeneralScrollPane(440139776)
        Arguments and temporary variables:

        Receiver's instance variables:
                bounds: 50@139 corner: 686@431
                owner: a SystemWindow(908591104)
                submorphs: an Array(a TransformWithLayoutMorph(445382656))
                fullBounds: 50@139 corner: 686@431
                color: Color transparent
                extension: a MorphExtension (222822400) [other:  (myDependents -> a DependentsA...etc...
                scroller: a TransformWithLayoutMorph(445382656)
                hScrollbar: a GeneralScrollBar(471334912)
                vScrollbar: a GeneralScrollBar(237240320)
Cheers,
Sean