For Programmers: Free Programming Magazines  


Home > Archive > Tcl > November 2007 > focus command 8.5b3 X11









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author focus command 8.5b3 X11
swan lee

2007-11-23, 7:13 pm

hi

quoted from online manual:
"When an internal window receives the input focus, Tk doesn't actually
set the X focus to that window; as far as X is concerned, the focus will
stay on the top-level window containing the window with the focus.
However, Tk generates FocusIn and FocusOut events just as if the X focus
were on the internal window. This approach gets around a number of
problems that would occur if the X focus were actually moved; the fact
that the X focus is on the top-level is invisible unless you use C code
to query the X server directly."

does someone have an example of how to query the X server to get the
simulate focus command ?

best regards
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com