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

Home » Public Forums » archive » Re: Allowable parameters in event_pro?
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: Allowable parameters in event_pro? [message #34881] Mon, 28 April 2003 15:06
R.Bauer is currently offline  R.Bauer
Messages: 1424
Registered: November 1998
Senior Member
Kevin M. Lausten wrote:

> I am attempting to run a widget_motion_event via a widget_control
> call. I need to pass a parameter, 'pointer' to the widget motion
> event. When I set the event_pro to 'read_pixel'(my event source code)
> without the parameter the program calls 'read_pixel' properly. When I
> attempt to include my parameter 'read_pixel, pointer', I get an error
> 'attempt to call undefined procedure/function' What am I doing wrong?
>
> widget_control, data, event_pro = 'read_pixel, pointer',
> Draw_motion_events = 1
>
> Thanks,
> Kevin

Dear Kevin,
you can't do this in this way.

event_pro is only a procedure call e.g.
widget_control, data, event_pro = 'read_pixel_event'

the event_pro itselfs in this example "read_pixel_event" is defined as

pro read_pixel_event,event
.
.
.
end

If you like to transport a value into this routine you can use every uvalue
of every widget. In most cases the uvalue of the top level base (TLB) is
used.


Here you can read it by a widget_control command
pro read_pixel_event,event
widget_control,event.top,get_uvalue=your_what_ever_value
.
.
end


But this must be defined by the base.
e.g. tlb=widget_base(uvalue=ptr_new(your_what_ever_value), ....)

best regards

Reimar


--
Forschungszentrum Juelich
email: R.Bauer@fz-juelich.de
http://www.fz-juelich.de/icg/icg-i/
============================================================ ======
a IDL library at ForschungsZentrum Juelich
http://www.fz-juelich.de/icg/icg-i/idl_icglib/idl_lib_intro. html
[Message index]
 
Read Message
Previous Topic: Allowable parameters in event_pro?
Next Topic: PVCS issues!!!

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

Current Time: Fri Oct 10 09:00:26 PDT 2025

Total time taken to generate the page: 0.00229 seconds