Login  Register

Customizing Magritte Morphic Forms

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

Lukas suggested I repost this here from the Magritte list (http://forum.world.st/Customizing-Magritte-Morphic-Forms-td4251518.html):

I'm playing with and already enjoying Magritte after the awesome talk Nick and Esteban gave at ESUG this year.

How do I customize Magritte editors in Morphic? Specifically, for the Address example from the Seaside book, I tried:
        anAddress asMorph
                addButtons;
                addWindow;
                openInWorld.

but the fields were really tiny and hid most of the text as you can see below:


Then I tried a standard Morphic approach:
        | form window |
        form := anAddress asMorph addButtons.
        window := SystemWindow new addMorph: form fullFrame: (LayoutFrame fractions: (0@0 corner: 1.0@1.0) offsets: (10@10 corner: 10@10)).
        window openInWorld.

but I got "MessageNotUnderstood: MAContainerMorph>>layoutFrame:"
Cheers,
Sean