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

Home » Public Forums » archive » How to retrieve the event structure returned to event function of widget ?
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
How to retrieve the event structure returned to event function of widget ? [message #29748] Mon, 18 March 2002 20:09
Xtynkt is currently offline  Xtynkt
Messages: 1
Registered: March 2002
Junior Member
Dear all,

I am trying to figure out how to retrieve the event structure returned
in a widget event function. For example, I am figuring out how cw_zoom
works, and am reading through the programmes. The widget event for
cw_zoom is written in function form, and one of the widgets is a
button and once it is pressed, a structure is returned to the event
function (the description is: when this button is pressed, this widget
will generate an event structure containing several data fields. This
event is a report to the parent that allows retrieval of the zoomed
image using WIDGET_CONTROL).

This is how I have done so far: (Z is image file)
slide_image, top_id=base, Z
zoom = cw_zoom(base, xsize=nx, ysize=ny, x_scroll_size=200,
y_scroll_size=200)
widget_control, zoom, set_value=Z

Then the image is there, and I can zoom properly, and after I choose
an area to zoom, I press "REPORT ZOOM TO PARENT" button. But after
that I wonder how do I retrieve this structure.

I have been figuring this out for a long time, reading the cw_zoom
source code and so on... and trying widget_control get_value... but
that will only retrieve values returned by functions or programmes
predefined by func_get_value when this cw_zoom compound widget is
created.

Does anyone has any idea how can I do that ?
Thank you very much in advance !
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: HDF->DXF
Next Topic: Re: How to retrieve the event structure returned to event function of widget ?

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

Current Time: Sat Oct 11 14:18:14 PDT 2025

Total time taken to generate the page: 1.59711 seconds