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

Home » Public Forums » archive » Re: Embedding GUI into a computational procedure
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: Embedding GUI into a computational procedure [message #60111] Wed, 30 April 2008 15:52
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Brian writes:

> Help! I've built a GUI and I want to call it from a main function.
> The problem I'm running into is that it builds the GUI then keeps on
> going and doesn't wait for me to do anything with the GUI. Is there a
> way to make the program pause until I have entered my user data?

Sounds like you wanted to build a pop-up dialog widget:

http://www.dfanning.com/widget_tips/popup.html

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.")
Re: Embedding GUI into a computational procedure [message #60112 is a reply to message #60111] Wed, 30 April 2008 15:10 Go to previous message
Loren Anderson is currently offline  Loren Anderson
Messages: 22
Registered: August 2007
Junior Member
On Apr 30, 5:45 pm, Brian <cavanaug...@gmail.com> wrote:
> Help! I've built a GUI and I want to call it from a main function.
> The problem I'm running into is that it builds the GUI then keeps on
> going and doesn't wait for me to do anything with the GUI. Is there a
> way to make the program pause until I have entered my user data?
>
> Thanks,
> Brian


If I understand you correctly, I ran into this same problem recently.
When you register the program with XManager, try setting the "noblock"
keyword to 0 (create a blocking widget). The commandline will be
blocked, but you can do what you want with the GUI and no further
processing will happen. When the GUI is destroyed, everything will
continue on as normal.

-Loren
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Embedding GUI into a computational procedure
Next Topic: XML Parsing

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

Current Time: Wed Oct 08 18:07:29 PDT 2025

Total time taken to generate the page: 0.00448 seconds