Re: How to get a Tk widget's coordinate? How to judge mouse is on a widget or not?
- From: Donald Arseneau <asnd@xxxxxxxxx>
- Date: 14 Jul 2006 16:23:16 -0700
Donald Arseneau <asnd@xxxxxxxxx> writes:
Another thing, on some systems there is [winfo pointerx] and y,
so you can determine which widget contains the mouse pointer by
winfo containing [winfo pointerx] [winfo pointery]
Correction: That should have been
winfo containing [winfo pointerx .] [winfo pointery .]
(where "." could be replaced with any existing displayed window;
the pointer doesn't have to be on it!)
Also, instead of "some" systems, read "most" or "almost all" (avoiding
obscure exceptions and old versions).
--
Donald Arseneau asnd@xxxxxxxxx
.
- References:
- Prev by Date: Nasty problem with background fcopy from socket to stdout
- Next by Date: Re: Nasty problem with background fcopy from socket to stdout
- Previous by thread: Re: How to get a Tk widget's coordinate? How to judge mouse is on a widget or not?
- Next by thread: ANN: threads enabled Itcl
- Index(es):
Relevant Pages
|