GUI-construction involves everything that is used to programmatically construct a custom graphical user interface under Mathematica.

learn more… | top users | synonyms

6
votes
2answers
88 views

RGBColor, ColorSlider and ColorSetter

A single RGBColor expression displays as a little square, showing the color. I just found that this little square is both a tooltip and a button. It seems to be new ...
5
votes
2answers
79 views

How to make a notebook take action whenever a particular symbol is defined or redefined?

For teaching purposes, I want to create a Mathematica notebook that will "notice" when the user defines or redefines a variable or function of a particular name, so that it can check the value and ...
0
votes
1answer
73 views
1
vote
2answers
83 views

Ask about the variable and constants in partial derivative in a loop

EDITED I have a function in a list like : func={2(x^2)+x*y+3(y^2)}; I want to have a UI that ask me which parameter (x or y) is a variable in a ...
6
votes
2answers
144 views

Import data from excel and store it permanently in notebook

I am trying to write the code for doing the following: by clicking a button, import specific data from an Excel file which I select through a dialog window; input a name for the imported data set ...
3
votes
1answer
57 views

Assign values to parameters from a list/Matrix using GUI

Assume there is a list like: ma={{L1,r1},{L2,r2}}; I want to convert the ma to a GUI which asks me about the values of ...
4
votes
0answers
73 views

How to avoid the pink background in GUIs without using Quiet

GUIs may generate warnings while internal evaluations are processed. In this example I intentionally introduce a line that will generate a warning. Warnings are useful, so I don't want to quiet them ...
0
votes
1answer
29 views

Behavior of custom file chooser code changes when placed inside DynamicModule

My primary objective is to build a file chooser that aides a user in selecting files into one of two categories. Files can be individually selected, or based on the clicking of a specific checkbox, ...
1
vote
2answers
63 views

How to show system busy during Dynamic with SynchronousUpdating -> False?

For long running evaluations in Dynamic it is recommended that SynchronousUpdating -> False be used to prevent time-out. ...
4
votes
1answer
147 views

How to make a widget float?

Is there an option or way to make a GUIKit window remain in on top of other application's windows? ...
4
votes
1answer
115 views

DynamicModule issues with Refresh, double evaluation, and CDF Player preview

I am in the middle of making a CDF for a calculation of many random variables. I've gone with DynamicModule and have read the documentation plus these posts: 32294 ...
0
votes
1answer
34 views

How can I make a RadioButtonBar that randomizes the choices each time a notebook is opened?

I have the following function for making a RadioButtonBar with randomized choices. The code is ...
2
votes
2answers
47 views

How to combine Toggler and Button?

The Play function defines a toggle button to start and stop: I'm trying to emulate that, but with a single button. I feel like this is a common enough task that this question should be answered ...
0
votes
1answer
53 views

Adding a plot to a DynamicModule

How can I add a Plot or Plot3D to my DynamicModule (on the same panel) without having a negative impact on the original function? I tried different (for me) logical ways to add the Plot function, but ...
2
votes
0answers
65 views

Program hidden beneath an interface in mathematica [duplicate]

I recently wrote a mathematica code that I would like to distribute to some friends. However, I don't want to give away the code. Is there a way that I can hide the code beneath an interface kind of ...
3
votes
1answer
92 views

TabView Alignment problem for content larger than a view area

When content is larger than ImageSize of TabView then the top edge is cut off even with ...
4
votes
1answer
136 views

How to label my training images?

I'm switching over Matlab, but I have a problem. Matlab has a GUI tool called the "Training Image Labeler" (shown below) that I use all the time to label my training data for my computer vision ...
1
vote
1answer
33 views

Using MatrixForm in a Manipulate

I have declared some lists vAwG = {{{0}, {0}}, {{1}, {1}}}; psi = {0, 1, 2, 3}; vBwB = {{{1}, {0}}, {{0}, {1}}}; and created a function ...
3
votes
0answers
97 views

How to implement a live-searchable table view? [closed]

Everyone with a mobile device is familiar with table views, searchable scrolling tables where rows have multiple elements like images and text, and are populated from some data source. Since a ...
4
votes
0answers
64 views

Are there any rules about style inheritance in Mathematica?

I can style every part of an UI separately. But it is not handy and it would be nice to have list of Heads which are not inheriting at all or even partly. Are there any rules about inheritance? ...
2
votes
1answer
133 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
0answers
111 views

Mathematica GUIKit

Does anyone of you know if the GUIKit package is still under some development by Wolfram Research or is the current version 1.1.0 the last one. Does it make sense to make GUIs using this package in ...
4
votes
2answers
109 views

Write GUI to select spheres in a grid

I'd like to generate a code that: 1) starts with a grid of circles (in general, it won't be a square grid) 2) allows the user to choose some of those circles 3) allows the user to choose the type of ...
4
votes
1answer
156 views

What is “MouseDragged”?

Maybe I'm picky but I don't consider static pressed button: "dragging". EventHandler[Framed[1], {"MouseDragged" :> (Print@RandomReal[])}] neither does ...
1
vote
1answer
63 views

Problem using variable loaded from TextField

I'm trying to make a simple app, which loads some data via TextFields and then does something with that, but ... ...
4
votes
2answers
150 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 ...
5
votes
1answer
114 views

ListPicker with conditional selection

I am reading data from a SQL Database and want to manually sellect multiple rows. ListPicker works very nicely, the only added complication is that I need to not only select the records, but also ...
0
votes
1answer
71 views

ListPicker delayed output

I'm trying to make a wrapper for ListPicker that delays updating the list unless Ctrl or Shift is released. The aim is to allow nested ...
2
votes
1answer
59 views

Changing size and/or aspect of OpenerView in Mathematica 10

I would like to change the size of the Opener in OpenerView when using Mathematica 10. In Mathematica 8, there was the option ...
0
votes
0answers
71 views

Can I reach a breakpoint when I press a button and call a function?

I have a function and inside it I put a breakpoint on the first instruction in the function. I made a Button which calls the ...
2
votes
1answer
87 views

Improving tab view for knots

This code: ...
1
vote
1answer
43 views

Using Loop to create mutiple EventHandlers

I have a problem, that is I want to use loop to create multiple EventHandlers, but my code shows nothing. What can I do? ...
1
vote
1answer
172 views

C# Tree view similar

Is it possible in Mathematica to add a GUI like the Tree GUI element in Visual Studio 2010 C# Windows Forms? I want to have the similar feel
7
votes
1answer
174 views

Momentary Checkbox

I'm trying to create a demonstration in Mathematica where a checkbox will show an answer, but I only want the answer to be shown while the mouse button is pressed. There seems to be a ...
2
votes
1answer
77 views

How can I set a RadioButton to invoke an action, like a Button can?

In Mathematica one can create a Button which, when clicked, invokes an action. For example... ...
5
votes
1answer
191 views

Dynamic panel crashes Mathematica 10.0.0.0

This answer by @paw have revealed a bug that causes Mathematica v 10.0.0.0 to crash the GUI and kernel. So far the offending code is this: ...
0
votes
0answers
33 views

How to modify MagnificationPopUp menu values in notebooks [duplicate]

The default options in a MagnificationPopUp menu (50, 75, 50, 100, 125, 200, 300) are sometimes not sufficient to meet all user's needs. This may have more applicability when creating user ...
10
votes
1answer
159 views

How to customize the MathematicaClosingDialog.nb?

With Mathematica 10 came the closing dialog notebook, which probably most of you deactivated. (You can bring it back by dechecking "Always exit after closing last window" in ...
2
votes
1answer
86 views

CreateDocument options needed to suppress the default notebook menu

What are the options needed in Mathematica 10 to suppress the menu on top of any notebook created with CreateDocument? For example, the Messages window as well as the windows generated by ...
5
votes
0answers
116 views

Simple Choice-Dialog like the auto-completion popup

What I want is pretty simple, nevertheless, after half an hour I have only unsatisfying solutions here. Let me ask you who might work more often with Mathematica's GUI elements: Is there a way to ...
2
votes
2answers
78 views

How to define range for Manipulate using exponents

I have a function: f[x_,y_] = x*y // ScientificForm; Manipulate[f[x,y], {x, 10^-1, 10^-10}, {y, 0.01, 1, 0.01}] When I try to execute it - it does work. However ...
1
vote
1answer
80 views

How to refuse close de Dialog when press Enter Key

As you can see in the documentation of CreateDialog In dialogs created with CreateDialog, pressing Return is effectively equivalent to clicking the ...
1
vote
0answers
80 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 ...
4
votes
1answer
139 views

ExampleData menu view

I'm trying to build an ExampleData browser, so that the "collection"/"type" is selectable in a drop down menu, and the "name" is selectable in another drop down menu. What I have so far: ...
0
votes
1answer
108 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 ...
1
vote
1answer
85 views

FlipView Alignment problem

Here's the problem with MWE: Framed[ FlipView[Framed /@ {100, 1}, Alignment -> Center] , ImageSize -> {100, 150}, Alignment -> Center] I ...
3
votes
2answers
147 views

Using MousePosition on the entire screen - Screencast with Linux

In order to record animations more easily while using Mathematica on Linux, I would need to know how to get the position of three clicks. The following picture (main part generated by ...
0
votes
0answers
67 views

How can I include a popup menu in my wizard's content?

I'm trying to create a wizard that enables the user to choose between different shaft components. At the same time, I need a flag to be 1 if he chooses a bearing and 0 otherwise. I extended the ...
2
votes
3answers
501 views

Writing a simple application: interactive quiz for multiplication table practice

I am trying to write a very simple application in Mathematica: a quiz that tests a multiplication table(let's use the 9x9 for this example). The app will display a question(e.g. 7x5), and the user has ...
4
votes
1answer
115 views

Dial control for Manipulate?

I'm trying to make a control item in a Manipulate that is a simple dial. I'm trying to mimic Manipulate[theta, {theta, 0, 360}], ...