The target is an external non-fox program. Rick Q [email protected]
On Thu, Sep 27, 2012 at 9:23 PM, Ken Dibble <[email protected]> wrote: > > I don't think his problem is getting content INTO the clipboard from two >> textboxes. I think he's saying his Dymo software lets him drop two items of >> data OUT of the clipboard into two separate textboxes with one paste. >> >> In VFP to do this, I think he'd need to create some type of invisible >> overlay on top of the receiving textboxes that would intercept the paste, >> break up the text string, and put the two pieces into the two textboxes. >> >> Not sure how the textboxes could then receive ordinary focus and let the >> user type into them but there's probably a trick to accomplish that too. >> >> Or just provide a single paste "target" image between the two receiving >> textboxes that intercepts the paste and does the work. >> > > Actually, even better: > > Code in the KeyPress() event method of both receiving textboxes that calls > form code to intercept CTRL+V, code in the ProgrammaticChange() event > methods to intercept the results of a mouse Paste (not sure one even occurs > natively in a textbox but we could fake that too...anyway...) > > ... the idea is to intercept and collect what gets pasted, parse it, and > drop it into the two textboxes. In the target textbox, you'd overwrite what > the default code put into the .Value property with the appropriate parsed > portion; in the other textbox you'd drop the rest. This would probably go > so fast you wouldn't even see a flash. > > I've done similar gymastics because I couldn't figure out how to make the > VFP drag-drop stuff work. (It never seemed to work the way the Help says it > should--or maybe the Help is just so obtuse on the topic that I wasn't able > to read the secret signs and symbols and get it working.) This could be a > fun little project if I had the time. It would probably take me half a day > to work it out. > > > Ken Dibble > www.stic-cil.org > > > ______________________________**_________________ > Post Messages to: [email protected] > Subscription Maintenance: > http://leafe.com/mailman/**listinfo/profox<http://leafe.com/mailman/listinfo/profox> > OT-free version of this list: http://leafe.com/mailman/** > listinfo/profoxtech <http://leafe.com/mailman/listinfo/profoxtech> > Searchable Archive: > http://leafe.com/archives/**search/profox<http://leafe.com/archives/search/profox> > This message: http://leafe.com/archives/**byMID/profox/5.2.1.1.1.** > 20120927211437.01fa6b58@POP-**Server.stny.rr.com<http://leafe.com/archives/byMID/profox/[email protected]> > > ** All postings, unless explicitly stated otherwise, are the opinions of > the author, and do not constitute legal or medical advice. This statement > is added to the messages for those lawyers who are too stupid to see the > obvious. > --- StripMime Report -- processed MIME parts --- multipart/alternative text/plain (text body -- kept) text/html --- _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/profox OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech Searchable Archive: http://leafe.com/archives/search/profox This message: http://leafe.com/archives/byMID/profox/cadazp2kecg-b3qurmwg5wfqmydsz42yeqyaq6huw5bky3sf...@mail.gmail.com ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.
