I would love to. In the meantime you may find the code instructing, starting from the DrGeo class you can follow to the polymorph use. Hilaire Simon Denier a écrit :
It looks good already. It would be great if you could share your tips and tricks for Polymorph in the Pharo book ;)
On 21 avr. 2010, at 18:36, Hilaire Fernandes wrote:
Known to work with Pharo 1.0.
Someone asked for a more elaborated UI for DrGeo, here are some progresses in this polymorphization of DrGeo. In its latest Monticello package one can grab DrGeo at http://www.squeaksource.com/DrGeoII
See enclosed screenshot for a quick view.
To start a DrGeo instance, do a "DrGeo new" in a workspace and enjoy the UI.
Beware, style tools does not work in the toolbar.
It is also possible to use DrGeo as a service for Etoys when executing a "DrGeo sample openInWorld"
It is also possible to load XML description of DrGeo 1.1 geometric sketch, if one is interested you can grab it at http://svn.gnome.org/viewvc/drgeo/trunk/examples/figures/ and load a sketch with a command: DrGeo newXml: path
Beware sketch with embedded Scheme code will not work (just try) Working sketch: mercedes, euler-line,
DrGeoII comes with a better interface for scripting with Smalltalk script, empower by the IDE, much nice than the former Scheme one. Elaborated demonstration at http://blog.ofset.org/hilaire/index.php?post/script-drgeo (automatic translation link with Google in a comment, at the end of the article)
<drgeo-poly.png>_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
-- Simon