Re: Trouble wih events [message #36770] |
Wed, 29 October 2003 05:54  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Nuno Oliveira writes:
> I have a problem with a routine that handles my widget events. I would like
> to know if someone here could give me a tip.
>
> When an event is recognized the program is supposed to execute a function
> (that is also a widget application) that returns an important variable. But
> it seems that the program doesn't wait to the function to terminate and
> executes the remaining statements on the event routine. The result is that I
> don't get my new variable (the one returned by the function).
>
> I thought the event routine would wait for the function to continue the
> execution but apparently, it doesn't... and the variable is in a COMMON
> block between the main program and the event routine
What you want is what I call a "pop-up" or "modal" dialog widget.
Here is how it is done:
http://www.dfanning.com/widget_tips/popup.html
Cheers,
David
--
David W. Fanning, Ph.D.
Fanning Software Consulting, Inc.
Phone: 970-221-0438, E-mail: david@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
|
|
|
Re: Trouble wih events [message #36855 is a reply to message #36770] |
Thu, 30 October 2003 05:44  |
Nuno Oliveira
Messages: 75 Registered: October 2003
|
Member |
|
|
Thanks.
I've already tried the solution that you refer in that link in your site and
it did solve my problem.
"David Fanning" <david@dfanning.com> wrote in message
news:MPG.1a0974936f96f519989728@news.frii.com...
> Nuno Oliveira writes:
>
>> I have a problem with a routine that handles my widget events. I would
like
>> to know if someone here could give me a tip.
>>
>> When an event is recognized the program is supposed to execute a
function
>> (that is also a widget application) that returns an important variable.
But
>> it seems that the program doesn't wait to the function to terminate and
>> executes the remaining statements on the event routine. The result is
that I
>> don't get my new variable (the one returned by the function).
>>
>> I thought the event routine would wait for the function to continue the
>> execution but apparently, it doesn't... and the variable is in a COMMON
>> block between the main program and the event routine
>
> What you want is what I call a "pop-up" or "modal" dialog widget.
> Here is how it is done:
>
> http://www.dfanning.com/widget_tips/popup.html
>
> Cheers,
>
> David
>
> --
> David W. Fanning, Ph.D.
> Fanning Software Consulting, Inc.
> Phone: 970-221-0438, E-mail: david@dfanning.com
> Coyote's Guide to IDL Programming: http://www.dfanning.com/
> Toll-Free IDL Book Orders: 1-888-461-0155
|
|
|