I have been working on my first Tk app and have run into a snag. I need to be able to copy the contents of a canvas widget to the clipboard. A super search on perlmonks for
canvas clipboard returned nothing. Searching on google returned a lot of stuff but nothing that helped me (at least not with this problem). From what little I have learned, I need to do:
$canvas->clipboardClear;
$canvas->clipboardAppend(-format=>'BITMAP',-type=>'BITMAP',?--?,data);
My problem is that I have no idea what needs to go in place of the "data" so that it will use the contents of the canvas.
In place of "data", I tried using
$canvas and
\$canvas which returned no errors but of course didn't work either. I also tried assigning the return of
$canvas->find('all') to a variable and using that in place of "data". Again, a miserable failure.
I'm sure that I have simply over looked something terribly obvious but I just can't seem to find the answer. Any help, examples, or links would be greatly appreciated.
Thanks,
Chris