Questions about the Mathematica control type InputField.
3
votes
1answer
77 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
44 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
56 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
90 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
49 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 ...
4
votes
3answers
81 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 ...
6
votes
0answers
61 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
44 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
2answers
63 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
98 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
3answers
174 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 ...
0
votes
0answers
48 views
Convert InputField to a number for ListLinePlot
I have a list of InputFields that I want the user to enter. This list should then be plotted. When I try to plot the list it does not show up because the items in ...
2
votes
0answers
61 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
53 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
131 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
106 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
61 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 ...
1
vote
0answers
84 views
Problem with dynamic interaction between functions?
I have written two functions one for creating list of InputField
...
1
vote
3answers
158 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
1answer
151 views
How can I create input fields based on the user's choice from a popup menu?
I'm trying to create an interface with Mathematica. However, I need some instructions concerning the code below. This is about 10% of what I have in mind, but first I need to know how can I create ...
8
votes
1answer
141 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,
...
4
votes
2answers
152 views
Updating the format style of input cells from an older/'pre-styled' notebook
I have been given a large notebook that was created in mathematica 6. It contains a structure of sections and subsections and the input text is formatted in an unusual (possibly just old) style (see ...
-7
votes
1answer
206 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 ...
7
votes
2answers
197 views
How to efficiently get the value from form UI built with dynamic InputField
Here is the code that I used to make a tabular UI.
...
4
votes
2answers
645 views
Reading in scientific notation from C++ to Mathematica
With a text file with entries formatted as (output from C++):
f[38.67] = -2.5387862698183892298317350539374412777263289550697e-05;
â‹®
Is there a way to read this ...
2
votes
0answers
50 views
How can I focus cursor at specific position? [duplicate]
Possible Duplicate:
Programmatically move the cursor to a desired location on the screen
I made a Button with the name of "Click",if we have to click on ...
6
votes
1answer
215 views
Interactive Graph Editing with Animation
I want to make a simple interactive user interface like this:
Such that when the user clicks on the "Add Edge" button, the edge specified by from and to fiels is added to the graph. The new graph ...
2
votes
2answers
252 views
How to get dynamic results of the values in three InputFields
I have three InputField-s which have no initial value. I would like all InputFields to have a value in descending order and for ...
5
votes
1answer
172 views
How to make InputTable
There is InputField in mma but how to make InputTable?
In MathCAD it`s possible to insert Excel spreadsheet with input and output variables.Input variables I use for filling of header row and column ...
2
votes
1answer
169 views
How can I change InputField value dynamically
I am storing the values from xlData to the result in a Grid form. I want when I change any of the value in any of the ...
1
vote
1answer
128 views
Using an InputField to define a function to compose with a sequence
I am still trying to figure out Mathematica (started early August). I am trying to write a program that will accept an arbitrary function and an arbitrary sequence that can start at an arbitrary ...
4
votes
1answer
229 views
help with dynamic input
I'm trying to build a pop up window with i lines. Each line would read:
Number of neurons in layer 1:
Number of neurons in layer 2:
etc until layer i
The user would enter a numeric value on each ...
1
vote
1answer
171 views
How To Track the Cursor Position?
I have 2 InputFields and 2 Buttons. I would like that when the user clicks the Pi Button or ...
6
votes
1answer
134 views
How can I make sure all InputFields have values before processing a nb form?
This is a two part problem:
I have a form that accepts both numeric and text inputs, then runs a function using a "process" Button. The issue I'm having is users that forget to fill out all of the ...
13
votes
2answers
292 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?
11
votes
1answer
323 views
InputField does not update correctly
By fiddling with Vitaliy's solution for a small GUI, I've come accross this particular behaviour of InputField:
...
24
votes
3answers
695 views
Automatically check student answers in tests
I am a physics teacher and I am looking for a way to create homework assignments within Mathematica so that each problem has an input field that students can use to check their answers.
For example, ...
10
votes
1answer
190 views
Rounding problems inside InputField
Consider the following InputField
InputField[Dynamic[h2,
If[# === Null, h2 = h2, h2 = Round[#, 0.001]] &], Number]
The ...
9
votes
1answer
447 views
How to specify the InputField as a String in Manipulate
I'm putting together a Demonstration which utilizes a function which operates on a (manipulated) String, and I'd like the ...
11
votes
2answers
209 views
How can you stop ordering of InputField entries?
I have:
InputField[Dynamic[d]]
Dynamic[d]
If I enter e.g.
a b x^5 h m
the entry automatically gets sorted, as per screen ...