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: [hidden email];
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 -----
Sent: Friday, June 25, 2010 8:12 PM
Subject: [Pharo-project] HTML5
slides
Hi,
How would you do it ?
Cheers,
_______________________________________________
Pharo-project
mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project