Questions about the Mathematica control type InputField.

learn more… | top users | synonyms

1
vote
1answer
81 views

How to write 1.0 in InputFields with ContinuousAction and Number constraint

With the concept of user responsiveness in mind, I’ve tinkered a couple of small apps that are supposed to be eh… responsive, i.e. calculating without having to press enter. They all rely on ...
3
votes
1answer
41 views

How use TraditionalForm input in InputField?

Inside a Manipulate, I'd like one of the controls to be an InputField and to allow the input entered to be in traditional form. ...
1
vote
2answers
56 views

How change style of InputField in a Manipulate?

Is it possible to specify a style, e.g., font size, for InputField type controls inside a Manipulate and if so, how? For ...
1
vote
1answer
55 views

How do I utilize the dynamic input field function in the manipulate function? Can I use this functionality to import a .xls from an URL dynamically?

Im trying to get my program to import a .xls for manipulation, I need to import the .xls at an url location dynamically, I did have this at the beginning of my code: ...
2
votes
0answers
40 views

Dynamic Slider and InputField: some numbers with machine precision display badly [duplicate]

I want to control a value in my program either by a Slider or an InputField. The following code does what I want in principle: ...
13
votes
2answers
276 views

Rounding problems inside InputField

Consider the following InputField InputField[Dynamic[h2, If[# === Null, h2 = h2, h2 = Round[#, 0.001]] &], Number] The ...
6
votes
1answer
108 views

Limit characters/digits entered into InputField

When using InputField, whether setting the input type as a Number or String, is there a way ...
4
votes
2answers
129 views

InputField as both in- and output fields with ContinuousAction

Many years ago, I made a handy little program in Flash. It consisted of a number of input fields, each representing a variable that was dependent on all the others. As soon as any field changed, the ...
6
votes
1answer
109 views

Can a field be used for both input and output (example: exchange rate calculator)

Suppose I want to build a simple currency converter like this one: The functionality is straightforward: enter an amount in any field box, it gets converted into other currencies whose fields are ...
2
votes
0answers
40 views

Background color does not display in InputField unless Appearance option is also specified

I get the same behavior for v.10.0.2 and v.9 with OS X (10.9.5) : No background color is displayed in InputField if I just set properly the option. For example, ...
0
votes
1answer
61 views

Text input style with math expression inside

I would like to make a text input with a math expression(yellow background) within the text input. Like this: But unfortunately I don't remember what it's called. Thanks!
0
votes
0answers
43 views

How to add Shift-Enter in external script?

I often generate MMA scripts externally w/ python to copy/paste into a notebook or run MMA directly on that file. I want resulting output interleaved w/ input commands, as would happen when the ...
1
vote
1answer
252 views

How would I input this truth table into Mathematica or Wolfram Alpha

I am unsure how to put the negations after a gate or before a gate?
0
votes
0answers
48 views

Disable Input Assistant Mathematica 10 [duplicate]

In the new Mathematica 10, every time I hover over a function for more than 0.001 second, this stupid box appears. In Mathematica 9, I had disabled it. However, no matter what I change in the ...
2
votes
0answers
52 views

How to copy text from InputField

The problem when you copy text from one InputFiled to another. Inserts in unnecessary places gap. For example copy the text "#bbb" (without the quotes) from one field to another get "# bbb" (without ...
0
votes
2answers
98 views

How can I name and manipulate several Input Fields? [duplicate]

I am completely new to mathematica--and have a very basic knowledge of programming. I would really, very much appreciate it if someone could explain to me how to refer to values entered into specific ...
1
vote
0answers
74 views

Preforming Operations on Input Fields

I'm setting up a CDF document (in mathematica 9) that takes a cone and plots a point on it. The input required from the user is the radius of the cone at the base, the height of the cone, and two of ...
2
votes
2answers
112 views

Evaluating an If expression inside Dynamic

I was trying to display some value inside a InputField. Usually it looks like this: ...
2
votes
1answer
90 views

Table with some editable cells

I have a table: I want it to be editable only where the zeros appear. I read this post Generating an editable table that can be used as input because it's almost exactly what I want, but I couln't ...
0
votes
1answer
91 views

Tab between elements in a GUI layout

If I have a bunch of input fields, I can tab between them quite conveniently, but if I want to navigate between the input fields and another element (in my case, a button), I have to click on the ...
2
votes
1answer
242 views

How to apply a free-form input Function using InputField

I am trying to take a free-form input Function to create a list using NestList. ...
2
votes
1answer
189 views

Dynamically Updating Function

I use Mathematica 8 and am working with DynamicModule. I'm trying to enter a function in an InputField then later apply it to two values entered in subsequent Input Fields. The function just does not ...
0
votes
1answer
80 views

How to read long numbers? [duplicate]

Now, I have a data file (abc.dat) and it includes many long-Fortran-like numerical numbers as follows, ...
4
votes
2answers
153 views

Entering scientific notation in an InputField

I am trying to make an InputField for numeric input, but InputField[Dynamic[num],Number] Does not allow the user to type ...
0
votes
1answer
50 views

Convert variable into function

Sorry if this is a duplicate, but I have a variable called H. H is some complicated function of ...
7
votes
4answers
404 views

Autocomplete InputField

Is there a way to define a InputField that displays a list of options as you type? More specifically I'm looking for an ...
17
votes
4answers
579 views

How can I make an InputField with a proper newline/carriage return?

The return key does not work as expected in an InputField, how can I overcome this?
5
votes
0answers
121 views

Make Enter create new line break inside InputField [duplicate]

I would like to write multiple lines of text inside an InputField, using ContinuousAction->True to update some variable ...
-6
votes
1answer
380 views

How can I make a customized InputField for date inputs?

I want to make an InputField that only allows a specific date format to be entered. I want to display a field hint in the format "dd:mm:yyyy". Once the user clicks ...
2
votes
1answer
156 views

Hide input with multiple output cells

I want to hide my input, but not with "close cell". i also want to have fast access to the input cell. i found Mr.Wizard's AutoCollapse function, but it doesn't work with two or more Print-functions ...
0
votes
1answer
177 views

How to build an interface that plots an equation given as text by a user?

I would like to create a window where a student may enter an equation and, by clicking on a button, the function gets plotted. In the original Spanish: Quiero realizar una ventana en la cual el ...
2
votes
1answer
251 views

How can I create an interactive application that accepts data and and plots it?

I have some code in Mathematica which shows a colored plot, where the coloring depends on data values. I would like to make this into an interactive application that accepts two inputs: data, a list ...
1
vote
1answer
70 views

InputField Insertion Point Movement

I am trying to make the Return Key move the insertion point to the end of the input field's text. Please see the example below for the problem I am facing. Namely, when the return key is pressed, the ...
8
votes
1answer
173 views

Converting to InputForm or StandardForm without deleting comments

Following on from this question: Is it possible to convert an expression to InputForm or StandardForm without losing the comments? For example, ...
0
votes
1answer
137 views

How to remove quotation marks from a generic InputField

I need to use an InputField with a generic dynamic variable (not restricted to be Number or String or whatsever) and I don't want to see the quotation marks in the case the input is a string. Here is ...
4
votes
1answer
170 views

Pretty InputField

I'm trying to create a "template" notebook for myself. I want to get input from a single InputField, and then run a few operations on it. How can I make the ...
1
vote
1answer
172 views

Input text field GUI [duplicate]

Is there a way to input multiple rows of text and save it as a variable? Like an InputField, but with multiple rows? I would like to make a simple text redactor, so that I could enter a text and then ...
1
vote
0answers
62 views

Convert ImageSize to FieldSize [duplicate]

How might I construct a function called EmToPX[p] such that the following 2 InputFields would be the same width. If not please ...
2
votes
1answer
123 views

Module Inside ToBoxes or MakeBoxes

Does someone mind explaining why Module doesn't seem to work while inside ToBoxes or MakeBoxes. ...
1
vote
1answer
112 views

How to preserve focus on InputField after Print?

If you press Enter in the example below it should become clear that test is being adding to the textbox instead of the current ...
2
votes
3answers
343 views

Dynamically filling matrix with a[[n,m]] = 1/a[[m,n]]

I'm building a square matrix, with 1s on the diagonal and elements in U the inverse of elements in L, which are random integers drawn from the sequence 1, ..., 9. Given the nature of the problem I ...
4
votes
3answers
354 views

Input field that appends to a list

I'd like to make a dynamic, changeable list, which has elements that are supplied by the user in an InputField. I want the program to have an InputField and a "reset" button. Every time the user ...
7
votes
0answers
104 views

Detect when InputField gets keyboard focus

How might I detect when an InputField comes into focus? For example ideally something like this would work. ...
2
votes
1answer
95 views

Interaction of InputField with Row (but not Column, Grid or Panel)

In Mathematica 9, there's an interaction between InputField and Row. The following fragment (without or without ...
0
votes
1answer
190 views

How to compute values only if input fields are filled?

In the following code how can I keep the DynamicModule from computing values if the input values are not all filled? If I don't specify default values it will show the code used to compute the values ...
2
votes
1answer
189 views

Autoupdate Dynamic Variable and Selectable

Does there exist a technique to construct a Cell that allows you to both auto update a Dynamic variable and allows you select the code while the variable is being ...
2
votes
0answers
74 views

Must Run Cell Twice to Display Values

What is going on here? Print[InputField[]] CellPrint[TextCell["my\"text", "Text", ShowStringCharacters -> True]] If I insert the above code into a blank ...
0
votes
1answer
62 views

InputField AutoSize Speed Issue

How do I have an InputField adjust to fill the remaining size of the window automatically? For example: Using the ImageSize ...
3
votes
1answer
226 views

InputField with Scrollbars [duplicate]

Edits are marked in bold: How do I make an InputField that behaves just like the following HTML Textarea example. ...
2
votes
1answer
89 views

How can I find ,Which InputField was recently updated?

I have 4 InputFields.I want to find which InputField was recently Updated out of all ...