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

Home » Public Forums » archive » ALL_EVENTS keyword in WIDGET_TEXT
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
ALL_EVENTS keyword in WIDGET_TEXT [message #5170] Tue, 17 October 1995 00:00
gfu is currently offline  gfu
Messages: 10
Registered: October 1995
Junior Member
Hi,

I thought that the keyword ALL_EVENTS in WIDGET_TEXT will allow
me to detect all keys I pressed in the WIDGET_TEXT widget.
However, in the example program, there is no event generate when
I press the <upper arrow> or <down arror> keys. Any explanation
on this ?

Thanks.

Gary


;*********************************************************** *******
pro text_event_EVENT, event

COMMON wid, cmd, quit

CASE event.id OF

quit: BEGIN
WIDGET_CONTROL, event.top, /DESTROY
RETURN
END

cmd: BEGIN
help, event, /structure
END

ELSE: BEGIN
END

ENDCASE

END


;*********************************************************** *****************

pro text_event

COMMON wid, cmd, quit

base = WIDGET_BASE(xoffset=50, yoffset=50, title="Test event")
base0 = WIDGET_BASE(base, /COLUMN)
base1 = WIDGET_BASE(base0, /ROW)

label1 = WIDGET_LABEL(base1, VALUE="Command :")
cmd = WIDGET_TEXT(base1, /EDIT, XS=60, /ALL_EVENTS)

quit = WIDGET_BUTTON(base0, VALUE="Quit")

WIDGET_CONTROL, /REAL, base

XMANAGER, "text_event", base, event="text_event_EVENT"

end
[Message index]
 
Read Message
Previous Topic: Re: map_image and write_jpeg assistance needed
Next Topic: Reading/plotting USGS SDTS files

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

Current Time: Wed Oct 08 15:23:05 PDT 2025

Total time taken to generate the page: 0.00444 seconds