Re: widget_problem [message #61423] |
Thu, 17 July 2008 09:44  |
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 #61515 is a reply to message #61423] |
Thu, 17 July 2008 10:24  |
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
|
|
|