Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2007
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2007

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

Search the Archive

Question about InputField

  • To: mathgroup at smc.vnet.net
  • Subject: [mg81525] Question about InputField
  • From: Cca <cca at gregosetroianos.mat.br>
  • Date: Wed, 26 Sep 2007 06:50:14 -0400 (EDT)
  • Reply-to: Cca <cca at gregosetroianos.mat.br>

The problem is as follows. Start with

DynamicModule[{v = Null}, {InputField[Dynamic[v]], Dynamic[v]}]

Now, enter a disjunction "pvq" by typing p+Esc||Esc+q in the returned InputField. When you click outside, the expression pvq is reformatted to p||q -- while I want to see pvq.

One solution that I found is to use

DynamicModule[{v = Null}, {InputField[Dynamic[v], Boxes], 
  Dynamic[ToExpression[v]]}]

But I´m not satisfied with it. What if I just want to put expressions in an InputField for which there is no rules for ToExpression? (Just presentation, not content.) Any ideas? 

Carlos César de Araújo
Gregos & Troianos Educacional
http://www.gregosetroianos.mat.br
MSN: cca_gregosetroianos at hotmail.com
Belo Horizonte, MG, Brasil
(31) 3283-1122



  • Prev by Date: Re: making a list using table but with different increment after
  • Next by Date: Re: Nullcline and getting "2" values for y
  • Previous by thread: Re: Getting pixel values from individual frames in an animated gif?
  • Next by thread: Wanted: Demonstrations Authors and Editors