At 3:11 pm -0500 08/03/01, Morbus Iff wrote:
>What I don't have is:
>
> a) Selectable text in the window - if I print 20 lines
> to the window with DrawString, it's my understanding
> that the user won't be able to drag-select/copy them?
>
> b) Autoscroll - the window won't follow the text.
If you just use QuickDraw routines that is certainly true. QuickDraw
knows nothing about line-wrap, newlines, scrolling, selection or
anything like that. It merely makes marks in the window.
But TextEdit knows all about these things; that is the point of
TextEdit; that is its raison d'être. It will do all the things you
want to do including a) and b) above. You have it all there in
TextEdit.pm.
From what you have said in various posts you want most of the
functionality of MPEdit but with the keyboard action suppressed?
Without suggesting MPEdit is a model of its kind it might at least
give you some ideas how to proceed.
At 11:07 pm +0000 08/03/01, John Delacour wrote:
>but I don't think there's any way to get a MacPerl window to follow
>the text or automatically scroll to the selection.
Oh no, a TextEdit field in a MacPerl window will do this easily. It
is not perhaps quite so easy to manage the scroll bars if only
because they have so many functions to handle and attributes to
maintain during the life of the program.
At 8:58 pm +0100 08/03/01, Bart Lateur wrote:
>Or simply do
> select FOO;
>first.
Of course, thanks. I always forget about 'select'. One trap one would
have to beware of is that print() basically takes a list as an
argument so you would have make provisions at the receiving end to
deal appropriately with lists.
At 8:06 pm -0500 08/03/01, Morbus Iff wrote:
>Is there anyway I can define a Mac::Window, and then put a (pane?)
>Dev::Console:$window within that window? Then I could have my autoscroll
>and easy stdout to the Dev::Console, but still the control over the look of
>the window?
Absolutely not.
HTH,
Alan Fry