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

Home » Public Forums » archive » Re: read input from a widget
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: read input from a widget [message #25726] Fri, 13 July 2001 04:36 Go to next message
Herb Mullens is currently offline  Herb Mullens
Messages: 2
Registered: June 2001
Junior Member
I like to use the CW_FIELD function that was supplied with IDL.

Herb
Re: read input from a widget [message #25728 is a reply to message #25726] Fri, 13 July 2001 01:28 Go to previous messageGo to next message
Kristine Hensel is currently offline  Kristine Hensel
Messages: 26
Registered: June 1999
Junior Member
Dominik Paul wrote:
> So we are searching for a widget component to enter some text.
>
> Does somebody know such a component?

For quick and dirty text input, I use XTXTIN, which is a JHUAPL library
routine:
ftp://fermi.jhuapl.edu/pub/idl/routines/xtxtin.pro

Kristine
--
Kristine Hensel
Environmental Systems & Services Phone: +61-3-9835-7901
20 Council St.
Hawthorn East, VIC 3123 Australia e-mail: kristine@esands.com
Re: read input from a widget [message #25729 is a reply to message #25728] Thu, 12 July 2001 22:02 Go to previous messageGo to next message
Michael Asten is currently offline  Michael Asten
Messages: 53
Registered: March 1999
Member
It is a sadly lacking feature of IDL that such a tool is not included in the IDL
system.
Of course a good programmer can write his/her own, but as I have pointed out to
RSI on many ocaasions, there are some simple i/o routines which we should not
have to write,
and this is one of them.

XVAREDIT is nearest to what you want in a system-supplied routine, but the
version in idl 5.x is horrible, as it uses the unloved TableWidget.
Try the following
idl> a=' ' & xvaredit,a & print,a

In order to enter your text you have to double click on the box, type text, then
press enter
to accept the text, then press Accept button. Like I say, horrible.[end of
rant! ]

The version of XVAREDIT from idl 4.x is vastly more friendly. I routinely pass
a set of numbers and text to xvaredit in a structure, edit them as required in
the nice system-supplied widget which appears with zero extra programming, then
extract the modified parameters from the structure. If you dont have idl v.4
but want to try it, I might email you the xvaredit v4 code if rsi is not
listening.

Regards,
Michael Asten


Mark Hadfield wrote:

> From: "Dominik Paul" <dpaul@ukl.uni-freiburg.de>
>> we would like read a string from the user. But this is not possible in the
>> runtime version (its possible under unix, ok, but unfortunately not under
>> windows.
>>
>> So we are searching for a widget component to enter some text.
>>
>> Does somebody know such a component?
>
> WIDGET_TEXT.
>
> Do you know how to wrap a text widget in a routine/object to pass the
> information you want back to the caller? If not I suggest you read a good
> book on IDL programming...
>
> http://www.dfanning.com/documents/books.html
>
> If you want a quick & dirty solution you could use XDISPLAYFILE with a
> temporary file.
>
> ---
> Mark Hadfield
> m.hadfield@niwa.cri.nz http://katipo.niwa.cri.nz/~hadfield
> National Institute for Water and Atmospheric Research
>
> --
> Posted from clam.niwa.cri.nz [202.36.29.1]
> via Mailgate.ORG Server - http://www.Mailgate.ORG
Re: read input from a widget [message #25730 is a reply to message #25729] Thu, 12 July 2001 14:41 Go to previous messageGo to next message
m.hadfield is currently offline  m.hadfield
Messages: 36
Registered: April 2001
Member
From: "Dominik Paul" <dpaul@ukl.uni-freiburg.de>
> we would like read a string from the user. But this is not possible in the
> runtime version (its possible under unix, ok, but unfortunately not under
> windows.
>
> So we are searching for a widget component to enter some text.
>
> Does somebody know such a component?

WIDGET_TEXT.

Do you know how to wrap a text widget in a routine/object to pass the
information you want back to the caller? If not I suggest you read a good
book on IDL programming...

http://www.dfanning.com/documents/books.html

If you want a quick & dirty solution you could use XDISPLAYFILE with a
temporary file.

---
Mark Hadfield
m.hadfield@niwa.cri.nz http://katipo.niwa.cri.nz/~hadfield
National Institute for Water and Atmospheric Research




--
Posted from clam.niwa.cri.nz [202.36.29.1]
via Mailgate.ORG Server - http://www.Mailgate.ORG
Re: read input from a widget [message #25751 is a reply to message #25730] Thu, 12 July 2001 02:30 Go to previous messageGo to next message
R.Bauer is currently offline  R.Bauer
Messages: 1424
Registered: November 1998
Senior Member
Dominik Paul wrote:
>
> Hi there,
>
> we would like read a string from the user. But this is not possible in the
> runtime version (its possible under unix, ok, but unfortunatelly nopt under
> windows.
>
> So we are searching for a widget component to enter some text.
>
> Does somebody know such a component?
>
> Thanks
>
> Dominik

Did you thought about using environment variables
or read from a file in a defined directory ?


regards
Reimar

--
Reimar Bauer

Institut fuer Stratosphaerische Chemie (ICG-1)
Forschungszentrum Juelich
email: R.Bauer@fz-juelich.de
http://www.fz-juelich.de/icg/icg1/
============================================================ ======
a IDL library at ForschungsZentrum Juelich
http://www.fz-juelich.de/icg/icg1/idl_icglib/idl_lib_intro.h tml

http://www.fz-juelich.de/zb/text/publikation/juel3786.html
============================================================ ======

read something about linux / windows
http://www.suse.de/de/news/hotnews/MS.html
Re: Re: read input from a widget [message #25810 is a reply to message #25730] Sun, 15 July 2001 16:12 Go to previous message
m.hadfield is currently offline  m.hadfield
Messages: 36
Registered: April 2001
Member
From: "Dominik Paul" <dpaul@ukl.uni-freiburg.de>
> we would like read a string from the user. But this is not possible in the
> runtime version (its possible under unix, ok, but unfortunately not under
> windows.
>
> So we are searching for a widget component to enter some text.

I have written a simple text-entry widget application based on my
MGH_GUI_Base class. You can get it, along with the rest of my public IDL
library at

http://katipo.niwa.cri.nz/~hadfield/gust/software/idl/

The text-entry class itself is called MGH_GUI_SetText. Here is code that you
would use to create an MGH_GUI_SetText object in blocking mode and get data
from it when it exits:

odlg = obj_new('MGH_GUI_SetText', /BLOCK)

odlg->Manage

odlg->GetProperty, STATUS=status, VALUE=value

case status of
0: print, 'Cancelled'
1: begin
print, 'Widget returned', value
end
endcase

---
Mark Hadfield
m.hadfield@niwa.cri.nz http://katipo.niwa.cri.nz/~hadfield
National Institute for Water and Atmospheric Research



--
Posted from clam.niwa.cri.nz [202.36.29.1]
via Mailgate.ORG Server - http://www.Mailgate.ORG
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Magnetic Local Time
Next Topic: SHADES as an output keyword?

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

Current Time: Wed Oct 08 16:01:01 PDT 2025

Total time taken to generate the page: 0.00912 seconds