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 #24205 is a reply to message #13949] Thu, 15 March 2001 07:03 Go to previous message
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
David Fanning (davidf@dfanning.com) writes:

> Then, find these two lines at the bottom of the event handler:
>
> WIDGET_CONTROL, stash, SET_UVALUE=state, /NO_COPY
> RETURN, { ID:parent, TOP:ev.top, HANDLER:0L, VALUE:value, DRAG:drag }
>
> Modify these two line to these:
>
> 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
> RETURN, thisEvent

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

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438 E-Mail: davidf@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
[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:05:41 PDT 2025

Total time taken to generate the page: 0.00391 seconds