Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Idl-pvware > Re: Simple ques...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 4 of 8 Topic 5483 of 6129
Post > Topic >>

Re: Simple question: promptusertext method

by Wasit.Weather@[EMAIL PROTECTED] Feb 29, 2008 at 12:02 PM

On Feb 27, 3:52=A0pm, David Fanning <n...@[EMAIL PROTECTED]
> wrote:
> Selim...@[EMAIL PROTECTED]
 writes:
> > I'm a novice in IDL, so please bear with me. I want a procedure to
> > display a prompt with a text field. From what I understand,
> > promptusertext is the method I should use. This said, I can't get it
> > to work properly. The prompt never displays and just registers the
> > user's entry as 0. Here's my code:
>
> > PRO ...
>
> > ...
>
> > obj =3D Obj_New("IDLitIMessaging")
>
> > result =3D obj->promptusertext('...', answer, title=3D'...')
>
> > ...
>
> > END
>
> > What am I doing wrong?
>
> If you are a novice IDL user, I seriously doubt you
> are programming iTools. So I don't think IDLitIMessaging
> is what you want. :-)
>
> Why don't you try something a great deal simpler. Here
> is a simple pop-up dialog that does what you want:
>
> =A0 =A0http://www.dfanning.com/programs/textbox.pro
>
> You use it like this:
>
> =A0 =A0answer =3D TextBox(Label=3D'What is your favorite color?', $
> =A0 =A0 =A0 =A0Title=3D'Type your favorite color', Cancel=3Dcancelled)
> =A0 =A0IF cancelled THEN RETURN
>
> You can read more about how it is created here:
Hi David,
I tried that program TextBox. I can compile it but can no trun.
Following is the error message.

Attempt to call undefined procedure/function: 'TEXTBOX'.
Execution halted at: $MAIN$
Did I miss something?

Thanks!

>
> =A0 =A0http://www.dfanning.com/widget_tips/popup.html
>
> Cheers,
>
> David
>
> --
> David Fanning, Ph.D.
> Fanning Software Consulting, Inc.
> Coyote's Guide to IDL Programming (www.dfanning.com)
> Se****e ma de ni thui. ("Perhaps thou speakest truth.")- Hide quoted text
-=

>
> - Show quoted text -
 




 8 Posts in Topic:
Simple question: promptusertext method
Selim.Ta@[EMAIL PROTECTED  2008-02-27 13:37:50 
Re: Simple question: promptusertext method
David Fanning <news@[E  2008-02-27 14:52:12 
Re: Simple question: promptusertext method
Selim.Ta@[EMAIL PROTECTED  2008-02-28 09:58:15 
Re: Simple question: promptusertext method
Wasit.Weather@[EMAIL PROT  2008-02-29 12:02:43 
Re: Simple question: promptusertext method
Wasit.Weather@[EMAIL PROT  2008-02-29 12:04:33 
Re: Simple question: promptusertext method
David Fanning <news@[E  2008-02-29 13:23:03 
Re: Simple question: promptusertext method
Wasit.Weather@[EMAIL PROT  2008-02-29 13:19:45 
Re: Simple question: promptusertext method
David Fanning <news@[E  2008-02-29 14:30:53 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Aug 30 8:27:15 CDT 2008.