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

Home » Public Forums » archive » No CR Events in Table Widgets in IDL 5.0
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
No CR Events in Table Widgets in IDL 5.0 [message #9236] Wed, 04 June 1997 00:00
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
Name: David Fanning
E-mail Address: davidf@dfanning.com
IDL version: { x86 Win32 Windows 5.0 Apr 28 1997}
Platform and OS: WindowsNT 4.0, Service Pack 1

Description of Problem: --------------------------------------------

IDL documentation seems to imply that table widgets
generate carriage-return events when the EDITABLE
keyword is set and the ALL_EVENTS keyword is turned
off.

I cannot get *any* table widget events in my event
handler under these circumstances, although the
information in the widget does change and appears to
get edited correctly.

Example Code: --------------------------------------------------------

PRO TABLE_EVENT, event
Print, 'In TABLE_EVENT event handler'
END

PRO TABLE
tlb = Widget_Base(Column=1)
values= Findgen(10)
values = Reform(values, 1, 10)
tableID = WIDGET_TABLE(tlb, /Editable, XSize=1, YSize=10, $
Value=values)
Widget_Control, tlb, /Realize
XManager, 'table_example', tlb, /No_Block
END

Known Workarounds or Fixes:-----------------------------------------

Set the ALL_EVENTS keyword and handle *all* events yourself. :-(

RSI Technical Support Response: ------------------------------------

Technical support confirms that this is a bug. They point
out that you can look for the CR (ASCII character 13) like
this:

if (event.type eq 0) then $
if (event.ch eq 13B) then $
PRINT, 'Carriage return'

Cheers,

David

----------------------------------------------------------
David Fanning, Ph.D.
Fanning Software Consulting
Customizable IDL Programming Courses
Phone: 970-221-0438 E-Mail: davidf@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com
[Message index]
 
Read Message
Previous Topic: Getting current MAIN procedure filename
Next Topic: IDL 5 Anomaly Database

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

Current Time: Wed Oct 08 19:52:24 PDT 2025

Total time taken to generate the page: 0.00495 seconds