[Pharo-dev] Coordinates problem with Athens and Morphic while coding Hyperion

kilon alios kilon.alios at gmail.com
Fri Nov 29 12:58:53 EST 2013


Very true , now I am studying how to import , export and display svg files.
Learning never stops and Roassal code is certainly helpful.

On Friday, November 29, 2013, wrote:

>  Stéphane Ducasse wrote:
>
>    Ok I have verified and indeed its not an Athens problem. My bad. The position of the morph is reported at 5 at 30 and the not the correct 0 at 0. So it looks like Morphic for some strange reason it offsets it.
>
> I knew about translateBy but I did not know about restoreAfter. so thank you.
>
> I prefer my version of the code because it makes clearer what I am trying to do. However ideally because I am drawing a box inside another box the best way would be to follow your approach and scale the second box using one shape instead of two I am currently doing. But thats the price I am paying from not knowing exactly how to do this.
>
> Also trying to painstakingly find the correct transform and scale values requires A LOT of testing . This is why I find a vector editor for Athens and Pharo absolutely essential. No coding can beat designing via mouse.
>
> On the other hand I could use Inkscape and import the svg to Athens , which what I am about to research. Designing all GUI elements by code is a very bad idea, but no less a learning experience.
>
> I will most probably move to Roassal too.
>
>
>  why?
> Just continue and learn.
>
>
>
>  There is a lot to learn from Roassal :)
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pharo.org/pipermail/pharo-dev_lists.pharo.org/attachments/20131129/cfbca726/attachment-0002.html>


More information about the Pharo-dev mailing list