Re: checking whether text widget has keyboard focus [message #41551] |
Thu, 18 November 2004 04:58 |
Benjamin Hornberger
Messages: 258 Registered: March 2004
|
Senior Member |
|
|
David Fanning wrote:
> Benjamin Hornberger writes:
>
>
>> is there a way to determine directly whether a text widget has the
>> keyboard focus currently? Or do I have to keep track of keyboard focus
>> events? If that's the case, David, I'll have to make another change to
>> fsc_field ;-).
>
>
> Sigh... :-)
>
> Try the KBRD_FOCUS_EVENTS keyword to Widget_Info.
No, that tells me only if keyboard focus events are *enabled* for the
widget...
Benjamin
|
|
|
Re: checking whether text widget has keyboard focus [message #41554 is a reply to message #41551] |
Wed, 17 November 2004 22:06  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Benjamin Hornberger writes:
> is there a way to determine directly whether a text widget has the
> keyboard focus currently? Or do I have to keep track of keyboard focus
> events? If that's the case, David, I'll have to make another change to
> fsc_field ;-).
Sigh... :-)
Try the KBRD_FOCUS_EVENTS keyword to Widget_Info. In general,
if you want to know something about the state of a particular
widget, Widget_Info is used to access it.
Cheers,
David
--
David W. Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http:/www.dfanning.com/
Phone: 970-221-0438, IDL Book Orders: 1-888-461-0155
|
|
|