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

Home » Public Forums » archive » Using Widgets and Procedures
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
Using Widgets and Procedures [message #84686] Mon, 23 July 2012 12:37
Oana Coman is currently offline  Oana Coman
Messages: 27
Registered: December 2011
Junior Member
Wasn't sure exactly what to title this. Also I'm no IDL wiz so I probably won't be using the right terminology but bear with me :)

So I have this widget definition module (the procedure that defines everything) that I call from the IDL command line. Its called "autovu". This autovu.pro calls another procedure inside it called autovu_fft when the "Compute AutoCorrelation" button is clicked. The code for this inside of the autovu procedure is w_auto=widget_button(bb, value='Compute AutoCorrelation', frame=2, event_pro='autovu_fft'). Once I am in autovu_fft, this will also output a plot for me, for which I want to define xmin/xmax/ymin/ymax at the command line (or not, if I want the program to do it automatically). Right now, the program just does it automatically, but I would like to be able to have a choice.
Is there any way that once I am in autovu_fft I can write some sort of code to ask me in the command line if I want to input ranges or no? I can figure out the rest from there, I just don't know how I would get the range information into my procedure.
Or, I originally thought I could just call autovu with the ranges at the command line (like autovu, xmin, xmax, ymin, ymax) but I don't know how I would then transfer these values into autovu_fft because of the way autovu_fft is called (by using event_pro). Also, calling autovu in that way seems to make my widgets unusable...I'm on widget pro but I'm thinking maybe you can't mess around with the widget definition module like that?
Any thoughts are appreciated.
Thanks!
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: problems reading large files under 64-bit machine
Next Topic: command line input

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

Current Time: Wed Oct 08 11:40:16 PDT 2025

Total time taken to generate the page: 0.01049 seconds