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

Home » Public Forums » archive » Re: Storing variables in multiple widgets applications
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: Storing variables in multiple widgets applications [message #41611] Sun, 07 November 2004 02:39
R.Bauer is currently offline  R.Bauer
Messages: 1424
Registered: November 1998
Senior Member
Jes?s Dom?nguez Colino wrote:
> James Kuyper <kuyper@saicmodis.com> wrote in message news:<418914D8.70008@saicmodis.com>...
>
>> When you have many parameters, I think you'll find that many of those
>> parameters are specific to the component parts of your widget, rather
>> than being specific to the top-level base. Therefore, store those
>> parameters in the user values of the corresponding components.
>
>
> But when you kill these components you have to pass the parameters to
> the top-level base or store them somehow. Just imagine you need all
> the parameters for a "process button" in the top-level base.
> Greetings,
> Jes�s


Dear Jes?s


this is a small example from our exercises. It shows how to use a
pointer as uvalue. The pointer stays as long as it is destroyed.

http://www.fz-juelich.de/vislab/software/idl_samples/Widgets /Oberflaechen/wid5.pro


more examples you'll find here.
http://www.fz-juelich.de/vislab/software/idl_samples/IDL-Bei spielsammlung.html

cheers

Reimar
--
Reimar Bauer

Institut fuer Stratosphaerische Chemie (ICG-I)
Forschungszentrum Juelich
email: R.Bauer@fz-juelich.de
------------------------------------------------------------ -------
a IDL library at ForschungsZentrum Juelich
http://www.fz-juelich.de/icg/icg-i/idl_icglib/idl_lib_intro. html
============================================================ =======
Re: Storing variables in multiple widgets applications [message #41615 is a reply to message #41611] Fri, 05 November 2004 19:16 Go to previous message
kuyper is currently offline  kuyper
Messages: 5
Registered: June 2004
Junior Member
jesusin@gmail.com (Jes?s Dom?nguez Colino) wrote in message news:<fd04930c.0411032350.4f49322@posting.google.com>...
> James Kuyper <kuyper@saicmodis.com> wrote in message news:<418914D8.70008@saicmodis.com>...
>
>> When you have many parameters, I think you'll find that many of
those
>> parameters are specific to the component parts of your widget,
rather than
>> being specific to the top-level base. Therefore, store those
parameters in
>> the user values of the corresponding components.
>
> But when you kill these components you have to pass the parameters to
> the top-level base or store them somehow. Just imagine you need all
> the parameters for a "process button" in the top-level base.
> Greetings,
> Jes�s


If you still need the parameters after killing the component, then the
parameter isn't really related to that component. You'll have to make
it a part of the top-level base's user value, or at least store it in
a pointer or a file that are referenced from the top-level base's user
value. Sorry.
Re: Storing variables in multiple widgets applications [message #41636 is a reply to message #41615] Thu, 04 November 2004 02:51 Go to previous message
Antonio Santiago is currently offline  Antonio Santiago
Messages: 201
Registered: February 2004
Senior Member
Perhaps you can encapsulate the information of every component in an
object and asociate de UVALE to that object.

"component" <----------> "Object with compnent information"

The top-level widget UVALUE can have a set of references to the object
information on every componen.

top-level <-----------> "Object component info 1"
|
|-----> "Object component info 2"
|
-----> "Object component info 3"

You can remove the component and the last information persist in the object.

It is only an idea.

Bye :)


> Jes?s Dom?nguez Colino wrote:
> Hi all,
>
> i have read many things about user values and common blocks but still
> don�t find the best solution.
>
> Imagine you have a top-level base with many children and many
> parameters each. Which is the best way to store these parameters? I am
> storing all the parameters in the user value of the top-level base,
> but i don�t think this is the best solution when you have many
> parameters. Defining common blocks is something that has also many
> disadvantages. I have thought about defining external objects or
> saving the variables to .sav files. Which is the optimal solutions?
> What do you think?
>
> Thanks in advance,
> Jes�
Re: Storing variables in multiple widgets applications [message #41637 is a reply to message #41636] Wed, 03 November 2004 23:50 Go to previous message
jesusin is currently offline  jesusin
Messages: 2
Registered: November 2004
Junior Member
James Kuyper <kuyper@saicmodis.com> wrote in message news:<418914D8.70008@saicmodis.com>...
>
> When you have many parameters, I think you'll find that many of those
> parameters are specific to the component parts of your widget, rather
> than being specific to the top-level base. Therefore, store those
> parameters in the user values of the corresponding components.

But when you kill these components you have to pass the parameters to
the top-level base or store them somehow. Just imagine you need all
the parameters for a "process button" in the top-level base.
Greetings,
Jes�
Re: Storing variables in multiple widgets applications [message #41646 is a reply to message #41637] Wed, 03 November 2004 09:26 Go to previous message
James Kuyper is currently offline  James Kuyper
Messages: 425
Registered: March 2000
Senior Member
Jes?s Dom?nguez Colino wrote:
> Hi all,
>
> i have read many things about user values and common blocks but still
> don�t find the best solution.
>
> Imagine you have a top-level base with many children and many
> parameters each. Which is the best way to store these parameters? I am
> storing all the parameters in the user value of the top-level base,
> but i don�t think this is the best solution when you have many
> parameters. Defining common blocks is something that has also many
> disadvantages. I have thought about defining external objects or
> saving the variables to .sav files. Which is the optimal solutions?
> What do you think?

When you have many parameters, I think you'll find that many of those
parameters are specific to the component parts of your widget, rather
than being specific to the top-level base. Therefore, store those
parameters in the user values of the corresponding components.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: IDL VM Machine "Execute" function.
Next Topic: IDL PET/CT Viewer and Analysis package

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

Current Time: Wed Oct 08 14:56:01 PDT 2025

Total time taken to generate the page: 0.00689 seconds