Hi Piotr, Iâm happy to learn that generally you get good results from the documentation and the tutorials. If there is anything missing in the documentation do not hesitate to inform using this mailing list. As for your layout question, laying out the different UI elements is (surprisingly) a complicated thing, which in my opinion can still be improved in Spec (although I have no concrete solution). I think that what you are asking for is not possible right now, unless you start using specific coordinates for the different UI elements. You can put all elements in the window at specific places (which may be percentages, offsets or absolute coordinates). For more info have a look at section 4 of the Spec book chapter (latest version at https://ci.inria.fr/pharo-contribution/view/Books/job/PharoBookWorkInProgres... ) Greetings,
On Jan 20, 2015, at 16:56, Piotr Klibert <piotr.klibert@10clouds.com> wrote:
Hello,
I started playing with Spec recently and I generally get good results out of its documentation and a couple of tutorials. However, yesterday I encountered a problem I didn't see mentioned anywhere.
Let's say I have a window looking exactly like this one: http://www.bahmanm.com/images/greeter-version-1.png/image
The "Hello, Bahman!" label is left-aligned. I'd like it to be centered horizontally. How do I do this?
I tried inspecting a Button below - which has its label centered - and discovered AlignmentMorph, but didn't get the time to try to use it. And anyway, I shouldn't need to use Morphic for a thing like this, right?
Best regards, Piotr Klibert
---> Save our in-boxes! http://emailcharter.org <--- Johan Fabry - http://pleiad.cl/~jfabry PLEIAD lab - Computer Science Department (DCC) - University of Chile