Messages from list : cormas@cirad.fr

Choose a topic among the following archives :

RE: [cormas] User-interface update

New Message Reply Date view Thread view Subject view Author view

Subject: RE: [cormas] User-interface update
From: Nicolas (nicolas.becu@gmail.com)
Date: Fri Mar 02 2007 - 10:46:42 CET

Hi Anne,

 

In the aspects method “initial map” (the instance tab of your class holding
the interface) you can add conditions

So you could have a initialMap value ifTrue:[“change the default value of
the other parameters]

 

Don’t forget the “value” method because initialMap is a valueHolder and not
the value itself.

 

Then you might have the problem that the value of the crop cover parameters
will not refresh automatically.

I personally never found a very nice method to refresh a window.

I use tricks such as:

            (self dependents detect: [:d | d label = 'Water Result'])
refresh.

or for images self class anImage displayOn: ((self dependents detect: [:d
| d label = ' Water Result ']) graphicsContext) at: (Point x:30 y:30) ]

 

Another way is of course to have your crop cover parameters in another
window. In such case you just need to add a button in the same interface as
initialMap, that opens the crop cover parameters interface.

 

Hope that helps

 

Nicolas

 

  _____

From: owner-cormas@cirad.cirad.fr [mailto:owner-cormas@cirad.cirad.fr] On
Behalf Of Anne Dray
Sent: vendredi 2 mars 2007 06:21
To: cormas@cirad.fr
Subject: [cormas] User-interface update

 

Hi all,
 
I'm building an input interface (with GUI Painter Tool) that displays all
the parameters of the model with their default values that end-users can
possibly modify. Attached is the bit I'm struggling with.

If the user selects "map_1986" in the "Initial Map" list, then it's fine,
the default parameters for "crop cover" are correct (30 and 50%).

 

However, if the user chooses "map_2005", then I'd like the interface to
instantly display another set of default parameters (50 and 70% for
example).
 
Any suggestion on how to do it?
 
Many thanks for your help
cheers
anne

 

  _____

Découvrez une nouvelle façon d'obtenir des réponses à toutes vos questions !
Profitez des connaissances, des opinions et des expériences des internautes
sur Yahoo! <http://fr.rd.yahoo.com/evt=42054/*http:/fr.answers.yahoo.com>
Questions/Réponses.

New Message Reply Date view Thread view Subject view Author view
 

Back to home