Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2010

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

Search the Archive

Re: Manipulate and syntax for InputField

  • To: mathgroup at smc.vnet.net
  • Subject: [mg111033] Re: Manipulate and syntax for InputField
  • From: Nate Dudenhoeffer <dudenhoeffer at wisc.edu>
  • Date: Sat, 17 Jul 2010 08:18:13 -0400 (EDT)

I am not sure how to constrain the input to a string as a manipulate
variable, but the code below should accomplish the same, only the input
field is no longer in the header.

species = "APINENE";
Manipulate[
 Grid[{{
    "Species:", InputField[Dynamic[species], String, FieldSize -> 8]
    },
   {expression[time, species]}
   }],
 {{time, stopIntegration, "Time Point"}, startIntegration,
  stopIntegration, Appearance -> "Labeled"}
 ]

-Nate

On Thu, Jul 15, 2010 at 2:09 AM, Scot T. Martin <smartin at seas.harvard.edu>wrote:

> Hints on following would be appreciated:
>
> Manipulate[
>  expression[time, species],
>  {{time, stopIntegration, "Time Point"}, startIntegration,
>   stopIntegration, Appearance -> "Labeled"},
>  {{species, "APINENE", "Species"}, FieldSize -> 8}
>  ]
>
> As intended, an InputField is generated by {{species, "APINENE",
> "Species"}, FieldSize -> 8}.
>
> The difficulty is I would like to constrain the type to String, as can be
> done using InputField["xxx",String]. But I cannot quite figure out the
> syntax to get String into the Manipulate formulation.
>
> Thanks in advance!
>
>
>


  • Prev by Date: Transform differential equation by tranformation rule
  • Next by Date: Re: Select only certain sublists matching criteria
  • Previous by thread: Manipulate and syntax for InputField
  • Next by thread: Select only certain sublists matching criteria