Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Idl-pvware > Widget Event_Pr...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 10 Topic 5581 of 6020
Post > Topic >>

Widget Event_Pro question

by Spon <christoph.blau@[EMAIL PROTECTED] > Mar 31, 2008 at 04:29 AM

Hi guys,

As part of a little image display programme, I've currently got a draw
widget:

Display = WIDGET_DRAW(Base, XSIZE = S[0], YSIZE = S[1], $
  /MOTION_EVENTS, EVENT_PRO = 'SLIDESHOWWIDGET_GETVALUES')

And I'd like to add button events to it. I don't want to get rid of
the motion events though. The easiest way that I can think of adding
functionality is to (ideally) have two Event_Pro strings, one to be
run if a motion event is detected, another if a mouse click is
detected. The two are going to do fairly different things here.
(If you're interested: the motion event will just update 3 labels
within the widget base to show x & y position and image intensity at
that point; whereas the click should start up a second, blocking
widget that's going to draw me a graph of image intensity change over
time at that point.)

Is there a way of doing this?
....perhaps by calling to widget_draw or even widget_control a second
time and defining a different Event_Pro? Can I even just superimpose a
second draw widget over the whole thing and give it its own event_pro?
I'd suspect that this latter approach would give it (my 2nd draw
widget) a different Window Index and mess things up royally at the
user interface :-(

Or am I just stuck making my SLIDESHOWWIDGET_GETVALUES programme big,
confusing and unwieldy?

Regards,
Chris
 




 10 Posts in Topic:
Widget Event_Pro question
Spon <christoph.blau@[  2008-03-31 04:29:56 
Re: Widget Event_Pro question
David Fanning <david@[  2008-03-31 06:45:55 
Re: Widget Event_Pro question
Spon <christoph.blau@[  2008-03-31 07:14:46 
Re: Widget Event_Pro question
David Fanning <news@[E  2008-03-31 08:45:03 
Re: Widget Event_Pro Bingo
Spon <christoph.blau@[  2008-03-31 07:43:11 
Re: Widget Event_Pro question
Spon <christoph.blau@[  2008-04-02 08:21:04 
Re: Widget Event_Pro question
David Fanning <news@[E  2008-04-02 09:23:49 
Re: Widget Event_Pro question
Spon <christoph.blau@[  2008-04-02 08:38:16 
Re: Widget Event_Pro question
David Fanning <news@[E  2008-04-02 09:47:39 
Re: Widget Event_Pro question
Spon <christoph.blau@[  2008-04-02 09:10:28 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Jul 25 17:19:03 CDT 2008.