Re: How to return Values from an options dialog widget to the main program (Pointers) [message #54010] |
Tue, 15 May 2007 06:45 |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Patrique writes:
> Now, that my *main tool* becomes more and more
> sophisticated, I've come to the point where a modal options dialog
> widget might be helpful. This widget can be called from the menu bar.
> As I figured out at David Fannings web site, pointers should be the
> most convenient way to get the variables that can be set in the
> options dialog back to my main program. Well...that's the point that
> leads to my question:
I think you might want to read that pop-up dialog
article again:
http://www.dfanning.com/widget_tips/popup.html
This time pay careful attention to the fact that the
pop-up dialog is a FUNCTION that returns the pointer
value as the result of the function. If you wish to
use that value in another part of your program, then
you are going to have to store it somewhere.
Your dialog program is a PROCEDURE, and the value
is never stored. That's why you can't find it.
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
|
|
|