MathGroup Archive 2008

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Manipulate question

  • To: mathgroup at smc.vnet.net
  • Subject: [mg94411] Re: [mg94379] Manipulate question
  • From: "David Park" <djmpark at comcast.net>
  • Date: Fri, 12 Dec 2008 06:55:08 -0500 (EST)
  • References: <22774205.1228985653358.JavaMail.root@m02>

Throw Manipulate in the ashcan and try something like this:

Module[
 {fac1 = "", fac2 = "", product = ""},
 Panel[
  Column[
   {Row[{"Factor 1: ", InputField[Dynamic[fac1], String]}],
    Row[{"Factor 2: ", InputField[Dynamic[fac2], String]}],
    Dynamic@Row[{"Product: ", product}],
    Row[
     {Button["Clear", fac1 = ""; fac2 = ""; product = ""],
      Button["Calculate", 
       product = ToExpression[fac1] ToExpression[ fac2]]}]
    }](* Main Column *),
  Style["Enter and Calculate Form"]
  ](* Panel *)
 ]


David Park
djmpark at comcast.net
http://home.comcast.net/~djmpark/  


From: Coleman, Mark [mailto:Mark.Coleman at LibertyMutual.com] 


Greetings

I'm working on a Manipulate-based interface that takes user input from
several drop down menus (in my application there are 9 of them) and then
runs a set of calculations based upon the user's choices. By default
Manipulate will run the calculation every time the user changes any of
the drop down menus. Ideally I'd like to have the interface not do any
computation until the user makes all of their selections and then
explicitly initiates the calculation (ideally using something like a
'Calculate' button). Does anyone have an example of how this might work?

Thanks,

Mark





  • Prev by Date: Re: Manipulate question
  • Next by Date: Re: Exponent function question
  • Previous by thread: Re: Manipulate question
  • Next by thread: Re: Re: Manipulate question