Mike Flannigan wrote:

> I> I think something is going wrong with your highlighting routine.  Or perhaps this 
> is
> > ot a Text widget?  If left alone, the Text widget will offer full copy-and-paste
> > functionality.
> >
>
> f I right click on the title bar, it gives "move", "size",
> "minimize", "maximize", "close".  If I right click anywhere else,
> it doesn't do anything - produces no box.  I don't recall
> hacking anything to do with that, but perhaps I did.
>
> Mike

Mike,

That is because you are mixing threads.  You pggybacked your issue on a thread 
initiated by
Vinesh Vargese, concerning the Tk::Text widget, as specified in the title bar.  The 
sample
code you tried had do with getting standard output redirected to a Tk widget, though
Zentara chose a Listbox rather than a Text widget to display the text.  The Listbox 
widget
does not have built-in copy-and-paste functionality.  Such functionality would be much 
more
dificult to define in a generic sense for a listbox.

This is actualy the question I posed at the end of my post.  I corrected your 
top-posting
above so you could see in context.  No, this is not a Text widget.  I think this is by
design.  Zentara provided sample code to demonstrate the difference between Tk display 
text
and standard output.  I don't think he had any intention of handing anyone a completed
assignment.

A simpler example, which does not deal with the original question, but which does show 
the
functionality you are interested in:

Greetings! E:\d_drive\perlStuff>perl -w
use Tk;

my $win = MainWindow->new(-title => 'This Text Copies Right');
my $text = $win->Text->pack(-expand => 'both');
MainLoop;
^Z

Joseph




-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to