comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: Keyboard events in a widget
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Keyboard events in a widget [message #14444 is a reply to message #14442] Thu, 04 March 1999 00:00 Go to previous message
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
Daniel SAGE (daniel.sage@epfl.ch) writes:

> How is it possible to generate an event when the user enters some characters
> in a widget_text or when the focus change of widget_text?

You have to add the ALL_EVENTS keyword to your example:

pro test_event, event
help, event, /Structure
end
pro test
w=widget_base( /COLUMN, /KBRD_FOCUS_EVENTS)
item1 = widget_text(w, value='1', /EDITABLE, /ALL_EVENTS)
item2 = widget_text(w, value='2', /EDITABLE, /ALL_EVENTS)
widget_control, /REALIZE, w
xmanager, 'test', w,/JUST_REG
end

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438 E-Mail: davidf@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
[Message index]
 
Read Message
Read Message
Previous Topic: Re: MSB, LSB?
Next Topic: Ptr_Free that recurses (including pointers within structures)

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Tue Dec 02 13:08:21 PST 2025

Total time taken to generate the page: 7.83969 seconds