[Cuis] How to center a submorph in its owner morph?

Juan Vuletich juan at jvuletich.org
Fri Feb 8 12:23:54 CST 2013


Hi Hannes,

Played a bit with your layout examples. This is great stuff! Very nice 
demos, showing what can be done with so little code. This is great for 
those who are afraid of doing GUIs!

Just a comment. In LayoutDemo3c, send #actualContents: and not 
#contents:. In addition, for proper display update, in 
TextModelMorph>>#update:, in the #actualContents branch, before exiting, 
do 'self redrawNeeded.'. I'll add this patch tonight.

Cheers,
Juan Vuletich

On 2/7/2013 12:32 PM, H. Hirzel wrote:
> Hello
>
> I want to add an instance of ImageMorph to an instance of  Morph and
> center it there?
>
> How do I do that?
>
> I have done experiments with newRow and newColumn layout, see
>    https://github.com/hhzl/Cuis-Add-Ons
>
> But I do not have examples yet of centering.
>
> Thank you for the answer in advance.
>
> Hannes
>
> _______________________________________________
> Cuis mailing list
> Cuis at jvuletich.org
> http://jvuletich.org/mailman/listinfo/cuis_jvuletich.org
>
>
> -----
> Se certifico que el correo no contiene virus.
> Comprobada por AVG - www.avg.es
> Version: 2013.0.2897 / Base de datos de virus: 2639/6087 - Fecha de la version: 07/02/2013
>
>





More information about the Cuis mailing list