Re: [Pharo-users] Morphs with Spec2

2020-03-20 Thread Sebastian Jordan
welcome Asunto: Re: [Pharo-users] Morphs with Spec2 Hi, 1. Spec styles define a “default” font applied to all components (morphs in this case) that understand font, and if you want to change it you need to define your own style. 2. A string morph cannot center the string (this is a morphic stuff

Re: [Pharo-users] Morphs with Spec2

2020-03-19 Thread Sven Van Caekenberghe
But I think he wants to know how he can use Spec2 to add a centred title. That should be possible without falling back to older stuff, right ? > On 19 Mar 2020, at 10:25, Esteban Lorenzano wrote: > > Hi, > > 1. Spec styles define a “default” font applied to all components (morphs in > this cas

Re: [Pharo-users] Morphs with Spec2

2020-03-19 Thread Esteban Lorenzano
Hi, 1. Spec styles define a “default” font applied to all components (morphs in this case) that understand font, and if you want to change it you need to define your own style. 2. A string morph cannot center the string (this is a morphic stuff) You can solve your problem by adding a PanelMorph

[Pharo-users] Morphs with Spec2

2020-03-18 Thread Sebastian Jordan
Hi everyone, I Want to use a StringMorph as a title of a UI created with Spec2. For that, I am using a SpMorhPresenter inside a SpPresenter. But the text inside the morph loses its format as it is shown in the attached image. Does anyone knows how to solve this? What I am doing wrong? It would b