Re: changing window focus with cusor on x-windows [message #68446] |
Fri, 23 October 2009 13:59 |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Mark Quigley writes:
> Just to make sure I'm being clear on this, instead of doing
>
> wset,1
>
> I'd like to be able to change the focus to window 1 by clicking on
> it.
>
> It seems like this would be possible, and not even very hard to do,
> since the window is bring brought to the foreground. Either IDL or the
> OS must know which window was clicked on..... However, I'm stumped.
This is not possible with normal IDL windows. You could probably
get something close to what you want if you wrote a widget
program and turned KBRD_FOCUS_EVENTS on for your top-level
base widgets. But your only hope here is to work with widget
windows.
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
|
|
|