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

Home » Public Forums » archive » Re: widget_problem
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: widget_problem [message #61423] Thu, 17 July 2008 09:44 Go to next message
d.poreh is currently offline  d.poreh
Messages: 406
Registered: October 2007
Senior Member
On Jul 16, 7:18 pm, Justus Skorps <ju...@gmx.de> wrote:
> On 16 Jul., 19:11, d.po...@gmail.com wrote:
>
>> Folks
>> I have written a widget that read two arrays. when I want to access to
>> that arrays in another *pro* in that widget it can’t recognize them.
>> My widget is like this:
>> I have a *file* button to read this 2 arrays (read elevation + read
>> area) when I want to call this two array from another button say*
>> analyze *, an error arising that says cannot recognize the arrays. I
>> am binger in the widget programming may be this question is stupid but
>> I can’t fix it.
>> Any help in advance greatly will be appreciated
>> Cheers
>
> You have to store the arrays somewhere...the uvalue of the top widget
> is the usual place for that...

Justus
stil can not fix it. i have Liam E.Gumley's book but ......
Cheers
Dave
Re: widget_problem [message #61442 is a reply to message #61423] Wed, 16 July 2008 22:30 Go to previous messageGo to next message
d.poreh is currently offline  d.poreh
Messages: 406
Registered: October 2007
Senior Member
On Jul 16, 7:16 pm, David Fanning <n...@dfanning.com> wrote:
> d.po...@gmail.com writes:
>> I have written a widget that read two arrays. when I want to access to
>> that arrays in another *pro* in that widget it can=92t recognize them.
>> My widget is like this:
>> I have a *file* button to read this 2 arrays (read elevation + read
>> area) when I want to call this two array from another button say*
>> analyze *, an error arising that says cannot recognize the arrays. I
>> am binger in the widget programming may be this question is stupid but
>> I can=92t fix it.
>> Any help in advance greatly will be appreciated
>
> Oh, oh. Have you bought a book yet?
>
> 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.")

yes David
i have bought the Liam E.Gumley's book. but the widget section is
somehow deficault for me. still working on it.
Cheers
Dave
Re: widget_problem [message #61464 is a reply to message #61442] Wed, 16 July 2008 10:18 Go to previous messageGo to next message
Justus Skorps is currently offline  Justus Skorps
Messages: 20
Registered: April 2007
Junior Member
On 16 Jul., 19:11, d.po...@gmail.com wrote:
> Folks
> I have written a widget that read two arrays. when I want to access to
> that arrays in another *pro* in that widget it can’t recognize them.
> My widget is like this:
> I have a *file* button to read this 2 arrays (read elevation + read
> area) when I want to call this two array from another button say*
> analyze *, an error arising that says cannot recognize the arrays. I
> am binger in the widget programming may be this question is stupid but
> I can’t fix it.
> Any help in advance greatly will be appreciated
> Cheers

You have to store the arrays somewhere...the uvalue of the top widget
is the usual place for that...
Re: widget_problem [message #61465 is a reply to message #61464] Wed, 16 July 2008 10:16 Go to previous messageGo to next message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
d.poreh@gmail.com writes:

> I have written a widget that read two arrays. when I want to access to
> that arrays in another *pro* in that widget it can=92t recognize them.
> My widget is like this:
> I have a *file* button to read this 2 arrays (read elevation + read
> area) when I want to call this two array from another button say*
> analyze *, an error arising that says cannot recognize the arrays. I
> am binger in the widget programming may be this question is stupid but
> I can=92t fix it.
> Any help in advance greatly will be appreciated

Oh, oh. Have you bought a book yet?

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: widget_problem [message #61515 is a reply to message #61423] Thu, 17 July 2008 10:24 Go to previous message
Justus Skorps is currently offline  Justus Skorps
Messages: 20
Registered: April 2007
Junior Member
> Justus
> stil can not fix it. i have Liam E.Gumley's book but ......
> Cheers
> Dave

after u load your arrays (lets call them A) store them with

widget_control, event.top, set_uvalue=A, /nocopy

You have to change 'event.top' that it fits your program...
In your second button you can now load the arrays with

widget_control, event.top, get_uvalue=A, /nocopy

It is useful to

-store the data in the main widget
-use a structure to store every data you want
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: IDL Average Value Graphs
Next Topic: UNDERLINE IDLgrTEXT?

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

Current Time: Wed Oct 08 20:02:28 PDT 2025

Total time taken to generate the page: 0.05659 seconds