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

Home » Public Forums » archive » Unable to get the user value of the top level base after a draw widget expose 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
Unable to get the user value of the top level base after a draw widget expose event [message #36173] Thu, 14 August 2003 04:58
Johan Marais is currently offline  Johan Marais
Messages: 7
Registered: July 2003
Junior Member
I keep on getting behaviour that I do not understand and as far as I
understand it, should not happen. I use draw widgets and objects graphics
with the EXPOSE_EVENTS from the draw widgets enabled. Here is an example:

pro image_Expose, event
widget_control, event.top, get_uvalue = state, /no_copy
for i=0,7 do state.combWindow[i]->Draw, state.combView[i]
widget_control, event.top, set_uvalue = state, /no_copy
end

pro setThresOf, event
widget_control, event.top, get_uvalue = state, /no_copy
state.ThresOf = event.value
widget_control, event.top, set_uvalue = state, /no_copy
end

where image_Expose the event handler for the draw widget's expose event is.
After a call to image_expose has been made and when I try to get the user
value of the top level base, (for example in setThresOf) I receive the
following error message:

% Expression must be a structure in this context: STATE.

When I issued the help statement, I receive the following:
IDL> help, state, /STRUCT
STATE UNDEFINED = <Undefined>

It seems to me that the program are unable to get the top levels base user
value once an expose event was executed.

Did anyone ever come across this? I do not know whether any other part of
the program can have an influence as well.
--
Johan Marais
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: V6.0 indexing change
Next Topic: Re: setting the path for READ_DICOM

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

Current Time: Wed Oct 08 19:06:07 PDT 2025

Total time taken to generate the page: 0.00622 seconds