home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / lang / tcl / 2462 < prev    next >
Encoding:
Internet Message Format  |  1993-01-23  |  1.3 KB

  1. Path: sparky!uunet!olivea!pagesat!netsys!agate!sprite.Berkeley.EDU!ouster
  2. From: ouster@sprite.Berkeley.EDU (John Ousterhout)
  3. Newsgroups: comp.lang.tcl
  4. Subject: Re: How to determine selection owner in Tk?
  5. Keywords: Selection, XA_PRIMARY, CLIPBOARD
  6. Message-ID: <1jptcs$5l6@agate.berkeley.edu>
  7. Date: 22 Jan 93 22:44:44 GMT
  8. References: <1993Jan20.165216.22749@crd.ge.com>
  9. Organization: U.C. Berkeley Sprite Project
  10. Lines: 15
  11. NNTP-Posting-Host: tyranny.berkeley.edu
  12.  
  13. In article <1993Jan20.165216.22749@crd.ge.com>, kennykb@dssv01.crd.ge.com (Kevin B. Kenny) writes:
  14. |> Is there a way in Tk for an application that has multiple widgets with
  15. |> `-exportSelection true' to find which among them (if any) currently
  16. |> owns the PRIMARY selection?
  17. |> 
  18. |> 73 de ke9tv/2, Kevin KENNY    GE Corporate R&D, Niskayuna, New York, USA
  19.  
  20. There's no way to do this in Tk 3.0, but Tk 3.1 (which I hope will be
  21. out in a couple of weeks) will have several improvements to the selection,
  22. including a "selection own" command that can be used to query the widget
  23. that has the selection (but only if it's in the same application), and
  24. new targets APPLICATION and WINDOW_NAME, which can be used to find out
  25. the application name and widget containing the selection, regardless
  26. of which application has the selection (but only if the application with
  27. the selection is a Tk application).
  28.