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

Home » Public Forums » archive » Keyboard events in a widget
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Keyboard events in a widget [message #14446] Thu, 04 March 1999 00:00
Daniel SAGE is currently offline  Daniel SAGE
Messages: 10
Registered: April 1998
Junior Member
Hi,
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?

With the small following example, I can catch only the Carriage Return key
pro test_event, event
print, event
end
pro test
w=widget_base( /COLUMN, /KBRD_FOCUS_EVENTS)
item1 = widget_text(w, value='1', /EDITABLE)
item2 = widget_text(w, value='2', /EDITABLE)
widget_control, /REALIZE, w
xmanager, 'test', w,/JUST_REG
end


------------------------------------------------------------ ----------------
Daniel Sage
EPFL - Swiss Federal Institute of Technology - http://www.epfl.ch
BIG - Biomedical Imaging Group - http://bigwww.epfl.ch

Address: EPFL, DMT/IOA, BM, CH-1015 Lausanne, Switzerland
Tel: +41 21 693 5189
Fax: +41 21 693 3701
Email: daniel.sage@epfl.ch
------------------------------------------------------------ ----------------
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Ptr_Free that recurses (including pointers within structures)
Next Topic: Re: Map of the Moon's surface

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

Current Time: Sat Oct 11 02:20:37 PDT 2025

Total time taken to generate the page: 0.16191 seconds