BookMorph size and printing
Gary McGovern
garywork at lineone.net
Thu Sep 20 17:25:51 UTC 2001
----- Original Message -----
From: "John Hinsley" <jhinsley at telinco.co.uk>
> In what form do you want the pages? (And what have the pages got in
> them?)
Printed out like a graphic bitmap, The pages contain various morphs such as
shapes, lines and buttons for animation.
>Given a postscript printer, the "print PS to file" option may be
> viable.
I use Win 95 (no flames please) and there is no option to print PS file.
To make it viable without a postscript printer you need to get
> the Ghostscript/Ghostview package and install it. (Google will find it
> -- do a search for Ghostscript). This simply adds a translation layer
> between your .ps file and your printer. It's a pretty neat package, but
> you may need to do some messing about with the Squeak output before you
> get what you want. For this reason you might consider simply grabbing a
> screenshot of the book. Pop
No, the pages should one day be larger than the screen so a screenshot
wouldn't be an option.
> Alternatively, Ned Konz's NK-ConnectorsDemo.056.pr (on BSS) has a very
> nice SaveGif button which you may be able to simply copy to the paste
> buffer and load into your own project (IIRC, Ned's project needs a
> pretty up to date Squeak).
This demo won't load in my image. Hangs forever. (Straight 3.0 image).
> Infinite size I'm not too sure of.... I take it you mean more than
> simply making the book bigger by making a page bigger?
I really meant the page to expand. While the book maintains its dimensions.
>From: "Ned Konz" <ned at bike-nomad.com>
> I hope you're using my Connectors for this <g>!
Well, I've taken a look and there are some similarities to what I want.
> The BookMorphs have expandable size; just don't try sizing the book
itself,
> rather size the page.
Sorry, I meant expanding the page while keeping the book the same size.
> Note that even if you use TwoWayScrollPanes to implement this, each
> PasteUpMorph hangs on to a full-sized bitmap. These can be huge. But if
> that's what you need, look at what I did in my Connectors with the
> NCScrolledCompositeStateMorph.
>
> I may do a ScrolledPageMorph sometime soon for a project of my own; this
> would be a subclass of TwoWayScrollPane that would have a PasteUpMorph. It
> would limit its size to the size of the PasteUpMorph (I think), and would
> have an API to set its underlying page size. Or I'd change BookMorph to
call
> pageSize: (a new method I'd write) rather than extent:.
>
> And it would print full-sized pages, with no scroll bars.
>
Yes, Ned, I took a look at your NCScrolledCompositeStateMorph.
and I think a book morph page similar to that would be great. But I noted if
an embedded morph was resized the scrollbars didn't resize automatically.
Unfortunately I cannot get the whole of your project just some parts.
Do you think it would be feasible to embed an ordinary morph into a page
then add the scrollpanes into that ordinary morph ? It would mean an extra
layer though.
Regards,
Gary
PS Did you know that the outlook express spell checker suggests calling you
Ned Kong
:-)
More information about the Squeak-dev
mailing list
|