Login  Register

Re: Customizing Magritte Morphic Forms

Posted by Tudor Girba-2 on Jan 01, 2012; 9:08pm
URL: https://forum.world.st/Customizing-Magritte-Morphic-Forms-tp4251570p4251587.html

As replied on the smallwiki mailing list:


Here is the code from the rendering in Glamour:

magritteMorph := FAMIXClass asMooseDescription asMagritteDescription
                        asMorph
                                addButtons;
                                morph.
scrollPane := GeneralScrollPane new.
scrollPane changeScrollerTableLayout.
scrollPane scrollTarget: magritteMorph.
scrollPane layoutFrame: (LayoutFrame fractions: (0 @ 0 corner: 1 @ 1)).
scrollPane openInWindow

I use the GeneralScrollPane because it lets you fill on one dimension and have a scroll on the other dimension.

Cheers,
Doru


On 1 Jan 2012, at 22:01, Sean P. DeNigris wrote:

> 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:
> http://forum.world.st/file/n4251570/PharoScreenshot.2.png 
>
> 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:"
>
> --
> View this message in context: http://forum.world.st/Customizing-Magritte-Morphic-Forms-tp4251570p4251570.html
> Sent from the Moose mailing list archive at Nabble.com.
> _______________________________________________
> Moose-dev mailing list
> [hidden email]
> https://www.iam.unibe.ch/mailman/listinfo/moose-dev

--
www.tudorgirba.com

"Yesterday is a fact.
 Tomorrow is a possibility.
 Today is a challenge."




_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev