���
For fun, can be done using halos to embed things interactively...
 
Start with:
 
(Morph new
 layoutPolicy: StackLayout new;
 addMorphBack: (Morph new color: Color red; hResizing: #spaceFill; vResizing: #spaceFill);
 addMorphBack: (Morph new color: Color green; hResizing: #spaceFill; vResizing: #spaceFill);
 addMorphBack: (Morph new color: Color blue; hResizing: #spaceFill; vResizing: #spaceFill);
 on: #mouseDown send: #value:value: to: [:event :source | source firstSubmorph goBehind];
 openInWindow)
 extent: 500@400;
 center: World center
 
Clicking on the window content will flick through the "slides" ;-)
 
Then, say:
 
TextMorph new openInHand
 
drag over the window, bring up the halo menu and "embed into".
 
repeat as desired!
 
(you can drag image files into Pharo from your OS, choose "open in window" then drag/embed etc.)
 
 
If you want to preserve the contents you can just get an inspector on the window (halos again) and assign to, say, a global. To reopen if closed just send #openAsIs (or equivalent) to your "stored" window.
 
This is by no means the nicest way of doing things, just relatively quick and requiring no new classes etc.

Regards, Gary
----- Original Message -----
From: laurent laffont
To: An open mailing list to discuss any topics related to an open-sourceSmalltalk
Sent: Friday, June 25, 2010 8:12 PM
Subject: [Pharo-project] HTML5 slides

Hi,

I dream of a Pharo app. to create slides like this http://slides.html5rocks.com

How would you do it ?

Cheers,

Laurent Laffont

http://pharocasts.blogspot.com/
http://magaloma.blogspot.com/


_______________________________________________
Pharo-project mailing list
Pharo-project@lists.gforge.inria.fr
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project