Hi all,
I've got a dw that I want to over-ride the default Windows paste behavior on. In my dw the user can copy (CTRL+C) a value, then highlight several rows and paste (CTRL+V). I have an event ue_keypress for the keypress event, and trap CTRL+V. If CTRL+V is pressed, I trigger the pfc_paste event.
CHOOSE CASE key
CASE KeyV!
if (keyflags = 2) then
this.Event pfc_paste()
return 1
end if
The pfc_paste event works perfectly, but before the keypress event triggers Windows "automagically" pastes what's in the clipboard to the last row selected, then pfc_paste() runs. I tried replacing this.Event with this.TriggerEvent .... no luck. It normally wouldn't be a problem except that pfc_paste checks to see if something is in the cell first. If there is something, it prompts the users for an over-write. So, the way it is now, the user gets prompted on the last row every time, even though the value was initially blank (before Windows pasted the clipboard into the cell).
Thanks,
~~~Tracy
~~~Tracy