>MacOS 'TextEdit' is intended for just this kind of thing. It will
>handle line wrapping for instance, which is quite difficult to do
>
> :MacPerl Ÿ:ext:Mac:TextEdit:t:SimpleText.t
>
>which will get you off to a flying start.
I had looked into that, thought it was the master, and then couldn't find a
way to make the output NON-modifiable by the user. I'll jump into the pod
on that one again, but if you know the answer, save me the hair pulling ;)
...
>"MacPerl Power and Ease" (Chapter 14) pages 212/213 will tell you how
>to handle modifications to the MenuBar and create your own Menus.
>Further information is given in the 'pod' which is part of 'Menus.pm'
>and in the examples to be found in ":ext:Mac:Menus:t:". In your
>application you might want to consider doing a Save and Restore for
Yeah, the PTF book was what I was using as my source for GUI junk, but it
only showed me how to add menu's, not wipe out the menu bar, and start
afresh. Eventually, I found pudge's mp3 player app on his site, which had
an example of what I wanted...
>I am not quite clear what you mean by 'redirect STDOUT'. Do you mean
>redirect the keyboard or 'print()' and 'write()' as well? If the
>latter you might look at 'MPEdit.pm' (http://www.afco.demon.co.uk)
>which does just that, or at least provides an alternative to
>'print()' which directs the output to an editable window.
Alan - I didn't see MPEdit.pm on your site, either in the xplatform or
mac-only sections. Ultimately, what I'd like to create is a simple spitup
log window. It's resizable, automatically scrolls, and I can print to it as
if it were a filehandle/pipe. It's not absolutely necessary to redirect
STDOUT - I'd just have to remember to silence STDOUT before passing the app
off.
>If you want to create a window which is re-sizeable with horizontal
>and vertical scrolling, matters get quite complicated. You might want
>to start with something simple in the first instance, and tackle the
>more difficult issues later on as they arise.
Really? Hmmm... I do want the ability to resize...
Thanks for the push in the right direction though...
--
Morbus Iff
Disobey has been mentioned in The Netly News, Internet World, ABC News,
Bruce Sterling's Dead Media Notes and many more. Microsoft and 3Com
ripped us off also... that's GOTTA mean we're important. And hell, we
got a rise out of Playboy! With sections that have nothing to do with
the others, you'll like at least one thing. No, really. Go there.
-07--- <\/> ---- <http://www.disobey.com/> ------- Bad Ego, Any Notice ----