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

Home » Public Forums » archive » cw_fslider
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: cw_fslider [message #24203 is a reply to message #13949] Thu, 15 March 2001 10:24 Go to previous messageGo to previous message
Stein Vidar Hagfors H[1] is currently offline  Stein Vidar Hagfors H[1]
Messages: 56
Registered: February 2000
Member
davidf@dfanning.com (David Fanning) writes:

> David Fanning (davidf@dfanning.com) writes:
>
[..........]
> Whoops! Of course, you have to put the state structure back. The code
> should really look like this:
>
> thisEvent = { ID:parent, TOP:ev.top, HANDLER:0L, VALUE:value, DRAG:drag }
> IF state.event_pro NE "" THEN BEGIN
> Call_Procedure, state.event_pro, thisEvent
> thisEvent = 0
> ENDIF
> WIDGET_CONTROL, stash, SET_UVALUE=state, /NO_COPY
> RETURN, thisEvent

And what if the event_pro tries to communicate with you in the mean time?
Probably safer with

thisEvent = { ID:parent, TOP:ev.top, HANDLER:0L, VALUE:value, DRAG:drag }

event_pro=state.event_pro
WIDGET_CONTROL, stash, SET_UVALUE=state, /NO_COPY
IF event_pro NE "" THEN BEGIN
Call_Procedure, event_pro, thisEvent
thisEvent = 0
END
RETURN, thisEvent

--
------------------------------------------------------------ --------------
Stein Vidar Hagfors Haugan
ESA SOHO SOC/European Space Agency Science Operations Coordinator for SOHO

NASA Goddard Space Flight Center, Email: shaugan@esa.nascom.nasa.gov
Mail Code 682.3, Bld. 26, Room G-1, Tel.: 1-301-286-9028/240-354-6066
Greenbelt, Maryland 20771, USA. Fax: 1-301-286-0264
------------------------------------------------------------ --------------
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: VARA1, VARB2, VARC8,...
Next Topic: Re: linkimage query

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

Current Time: Wed Oct 08 19:01:47 PDT 2025

Total time taken to generate the page: 0.00409 seconds