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

Home » Public Forums » archive » double event
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
double event [message #13227] Wed, 21 October 1998 00:00
dsheerin is currently offline  dsheerin
Messages: 8
Registered: June 1998
Junior Member
Can anyone tell me why the following code prints a second copy of the
text string when I change the value of one of the exclusive buttons.
Thanks for any replies.

pro test_event, event

case event.value of
'1': print, 'you pressed 1'
'2': print, 'you pressed 2'
endcase
end

pro test

base = widget_base ()
base1 = widget_base (base, row = 1)
dimension = ['1','2']
bgroup2 = CW_BGROUP(base1,dimension, /RETURN_name,/COLUMN,/EXCLUSIVE)

WIDGET_CONTROL,base,/REALIZE
xmanager, 'test', base

end
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Changing resolution of CGM file
Next Topic: two surfaces on same plot?

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

Current Time: Sat Oct 11 16:14:54 PDT 2025

Total time taken to generate the page: 0.80354 seconds