TRAbstractBoxShape>>leftPositon:aPositon

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

TRAbstractBoxShape>>leftPositon:aPositon

Leo Perard
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
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: TRAbstractBoxShape>>leftPositon:aPositon

abergel
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 <[hidden email]> 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
> [hidden email]
> https://www.iam.unibe.ch/mailman/listinfo/moose-dev

--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.



_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: TRAbstractBoxShape>>leftPositon:aPositon

Leo Perard
Yes I use translateBy or translateTo but leftPosition: is uselless.

Leo Perard


On Wed, Apr 2, 2014 at 5:25 PM, Alexandre Bergel <[hidden email]> 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 <[hidden email]> 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
> [hidden email]
> https://www.iam.unibe.ch/mailman/listinfo/moose-dev

--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.



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


_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: TRAbstractBoxShape>>leftPositon:aPositon

abergel
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 <[hidden email]> wrote:

Yes I use translateBy or translateTo but leftPosition: is uselless.

Leo Perard


On Wed, Apr 2, 2014 at 5:25 PM, Alexandre Bergel <[hidden email]> 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 <[hidden email]> 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
[hidden email]
> https://www.iam.unibe.ch/mailman/listinfo/moose-dev

--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.



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

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

-- 
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.




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