sorry if my title is confusing, but I am confused.
I'm working with the Tk::TableMatrix widget to edit tabular data, though my problem may not be specific to that widget.
Apparently in Tk::TableMatrix the event <Control-Key-v> has a default binding to a callback that performs a paste operation. I don't know if this is an inherited binding or what: the documentation for Tk::TableMatrix makes no mention of it and I am, as they say, a total Tk newbie.
That "built-in" paste function works great and I don't want to have to write my own. But I need to know when a paste operation begins and then when it is finished.
Idealy, I think, I would create my own callback bound to <Control-Key-v> within which I could call the "built-in" paste function. But I can't find any documentation on this paste function, nor can I figure out any other way to call it other than generating the event: <Control-Key-v>.
I know you can have multiple callbacks bound to the same event. And that the callbacks are executed in a certain order according to their 'specicifity'. So maybe I could construct two bindings such that one would run right before the default <Control-Key-v> callback and the other one right afterwards, but that seems messy to me. I think it wreaks.
So does anybody know if there is some sort of $widget->paste() function that Tk::TableMatrix is calling that I could call too?
Or am I thinking about this the wrong way?
Or do I need to be more specific?
(by the way, the reason I want to know when a paste operation is in progress is so that my I can capture mulitple cell edits. I'm trying to build some Undo functionality into Tk::TableMatrix, and I want a multiple cell edit (such as with "paste", "cut", or "replace all") to be an atomic undo.)
Thank you so much, I hope this isn't a topic that's been broached and answered previsouly, I searched a little bit and really didn't see anything that seemed to match.
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.