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

Home » Public Forums » archive » Re: Simple GUI question
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Simple GUI question [message #34800 is a reply to message #34799] Fri, 18 April 2003 08:02 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Kevin M. Lausten (kevinlausten@hotmail.com) writes:

> I am a beginner user of IDL and results are expected soon. My current
> project begins with a GUI in which the user is prompted to input
> strings into several text widgets. I am haveing trouble passing this
> data from the GUI to my source code. The first line of my source code
> calls the GUI, and I need subsequent lines to perform procedures and
> functions on the data provided by the user. Any help would be greatly
> appreciated.

What you want is a modal or blocking "dialog" widget:

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

You can find an example of how to write one here:

http://www.dfanning.com/programs/textbox.pro

The example allows you to open a text widget and return
the answer to your program. Your program will be slightly
more elaborate than this, but will work on exactly the
same principles.

IDL> theName = TextBox(Label='What is your name? ', $
Value='Unknown', Cancel=cancelled)
IDL> IF NOT cancelled THEN Print, theName

Cheers,

David

P.S. The fastest way to learn about widget programming in IDL
is to get a good book. :-)

--
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
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: IDLWAVE question
Next Topic: Re: DTED READERS

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

Current Time: Sat Oct 11 11:13:53 PDT 2025

Total time taken to generate the page: 0.55662 seconds