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

Home » Public Forums » archive » SIMULTANEOUS RUN
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: simultaneous run [message #2415 is a reply to message #2403] Tue, 05 July 1994 06:01 Go to previous messageGo to previous message
tai is currently offline  tai
Messages: 14
Registered: June 1994
Junior Member
Victor Shvetsky (Garden) (victor@astro2.ps.uci.edu) wrote:
: a=widget_base()
: b=widget_base(a, event_pro='x')
: c=widget_base(a,event_pro='y')

: How can one run x and y simulataneously?

I have never needed to use the event_pro keyword. Thus, I handle all
events under the main base in one procedure with a single CASE
statement. Here is an quick example I created using wided:

PRO MAIN1_Event, Event
WIDGET_CONTROL,Event.Id,GET_UVALUE=Ev
CASE Ev OF
'Button': BEGIN
Print, 'Event for Button'
END
ENDCASE
END

PRO test, GROUP=Group
IF N_ELEMENTS(Group) EQ 0 THEN GROUP=0
junk = { CW_PDMENU_S, flags:0, name:'' }
MAIN1 = WIDGET_BASE(GROUP_LEADER=Group, ROW=1, MAP=1, UVALUE='MAIN1')
BASE2 = WIDGET_BASE(MAIN1, ROW=1, FRAME=1, MAP=1, TITLE='Base 1', $
UVALUE='BASE2')
BASE3 = WIDGET_BASE(MAIN1, ROW=1, FRAME=1, MAP=1, UVALUE='BASE3')
BUTTON4 = WIDGET_BUTTON( BASE3, UVALUE='Button', VALUE='Button')
WIDGET_CONTROL, MAIN1, /REALIZE
XMANAGER, 'MAIN1', MAIN1
END


Alan
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Can't get POSTSCRIPT output
Next Topic: SIMULTANEOUS RUN

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

Current Time: Wed Oct 08 17:18:19 PDT 2025

Total time taken to generate the page: 0.00390 seconds