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

Home » Public Forums » archive » Re: Trouble wih events
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
Re: Trouble wih events [message #36770] Wed, 29 October 2003 05:54 Go to next message
David Fanning is currently offline  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 Go to previous message
Nuno Oliveira is currently offline  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
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Best Path Through a Vector Field
Next Topic: Re: big file navigation

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

Current Time: Wed Oct 08 17:32:27 PDT 2025

Total time taken to generate the page: 0.00885 seconds