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