Project layout
Bob Arning
arning at charm.net
Wed Feb 14 20:55:22 UTC 2001
Karl,
I'm sure there are a number of ways a creator could do this, but which one to use might depend on how tricky the creator needed to be. One would be simply to write a small script that said something like
Display width < 1024 ifTrue: [
World subMorphsDo: [ :each |
(each hasProperty: #BIGPICTURE) ifTrue: [each extent: each extent // 2].
(each hasProperty: #SMALLBUTON) ifTrue: [each left: each left - 200].
...etc...
].
].
The you could put this script
- on a button the recipient could press
- on a menu somewhere
- in a #step method that would run once when the world was loaded
Cheers,
Bob
On Wed, 14 Feb 2001 21:30:45 +0100 Karl Ramberg <karl.ramberg at chello.se> wrote:
>Is it possible to use the recently added layout stuff within the
>World. And then say this guy should be 5% from the edge and this one
>245 pixels down from that ? So one could do things like one do in
>html tables/ frames, just hopefully better;-)
>The times I'v done web layout this is one of the big problems, the users screen
>size is never known. So one have to start with the worst case scenario
>and cross fingers. The way director/ shockwave/ flash(?) do this is
>to have a fixed stage size. This is usually set to 640x480 for cd-rom ,
>and smaller for
>web stuff. Then the area around is filled with black, depending on users
>screen size.
>On web it's filled with adds:-)
>This is usefull for some stuff, but other projects could scale to the
>screen size on loading/ opening and have their content scale or not on
>creators demand.
>Some options like these in the project/authoring tools/playfield
>settings would be nice ;-)
More information about the Squeak-dev
mailing list
|