On day8/3/01 at 3:11 pm -0500, 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.
>
>How many of you have used Napster for the Mac? I guess what I'm 
>looking for is that little server window, where they spit out 
>messages about how they're burning in hell and click here to help 
>us, and so forth. That window scrolls automatically and the text is 
>selectable.


There's always Apple Events of course...


MacPerl::DoAppleScript(<<END_SCRIPT);
   make Window
   set Name of front Window to "Test"
   tell Window "Test"
     set bounds to {500, 200, 700, 600}
     repeat with i from 1 to 10
       set contents of selection to "Line " & i & return
     end repeat
   end tell
END_SCRIPT

but I don't think there's any way to get a MacPerl window to follow 
the text or automatically scroll to the selection.

JD

Reply via email to