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

Home » Public Forums » archive » Capturing draw events
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Capturing draw events [message #6351] Sat, 22 June 1996 00:00 Go to previous message
Phil Williams is currently offline  Phil Williams
Messages: 78
Registered: April 1996
Member
Widget programmers,


I was wondering if anyone out there can help me out with a problem....

Here's the situation. I have a widget with several control panels
created with coumpound widgets. They all have state structures which I
save in the uvalue of the first child of the base. These structures
typically have the ids of any child widgets that I need access to.

When one of these panels is displayed I want to send any draw events to
a different procedure to process the event and update child widgets of
that panel. However, the following does not work:

pro panel_draw_event, draw_event, parent

stash = WIDGET_INFO(parent, /CHILD)
WIDGET_CONTROL, stash, GET_UVALUE=r, /NO_COPY

widget_control, r.textwidgetid, $
set_value=string(draw_event.x) + string(draw_event.y)

WIDGET_CONTROL, stash, SET_UVALUE=r, /NO_COPY

end

From the main widget I pass the event structure and the mainbase id of
the panel from when it was originally created. I have checked
panel_draw_event to make sure that parent was indeed the correct value
and it is. Can I only retrieve the structure r if the handler and the
parent are the same? If so, how can I work around this?

Any pointers would be greatly appreciated...

--
/*********************************************************** ********/
Phil Williams, Ph.D.
Research Instructor
Children's Hospital Medical Center "One man gathers what
Imaging Research Center another man spills..."
3333 Burnet Ave. -The Grateful Dead
Cincinnati, OH 45229
email: williams@irc.chmcc.org
URL: http://scuttle.chmcc.org/~williams/
/*********************************************************** ********/
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Frame Grabber Support?
Next Topic: PV-WAVE backing store

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

Current Time: Wed Oct 08 18:57:13 PDT 2025

Total time taken to generate the page: 0.00421 seconds