Ah yes!!!
I have removed #leftPosition: and added #translateLeftTo: and #translateRightTo: A short example to try in a Playground:
-=-=-=-=-=-=-=-=-=-=-=-= | v c l1 l2 b | v := RTView new. c := v canvas. l1 := TRLabelShape new text: 'Hello World'. l2 := TRLabelShape new text: 'Bonjour à tous'. b := TRBoxShape new size: 40; color: Color blue. l1 translateRightTo: 0 @ -30. l2 translateLeftTo: 0 @ 30. c addShape: b. c addShape: l1. c addShape: l2. v -=-=-=-=-=-=-=-=-=-=-=-=
Alexandre
On Apr 2, 2014, at 12:40 PM, Leo Perard leo.perard@gmail.com wrote:
Yes I use translateBy or translateTo but leftPosition: is uselless.
Leo Perard
On Wed, Apr 2, 2014 at 5:25 PM, Alexandre Bergel alexandre.bergel@me.com wrote: Hi Leo!
Probably this is not well explained. #position is defined in TRShape, the superclass of TRAbstractBoxShape The easiest way to modify the position of an element, is to use #translateBy: and #translateTo: There is no #position: method
Alexandre
On Apr 2, 2014, at 11:14 AM, Leo Perard leo.perard@gmail.com wrote:
Hi,
in TRAbstractBoxShape there is the leftPosition: method wichi calls position: but position: is not defined in TRAbstractBoxShape or its superclasses. I don't know if position: has been forgotten or if leftPosition: is not suppose to be implemented.
Leo Perard _______________________________________________ Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
-- _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;: Alexandre Bergel http://www.bergel.eu ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev