Questions tagged [gui-construction]

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

Filter by
Sorted by
Tagged with
0
votes
0answers
25 views

Mouse wheel scrolling doesn't work in Pane inside ExpressionCell

Essentially what the title says - Consider the following example: ...
15
votes
3answers
586 views

VoronoiMesh as a TogglerBar

Is it possible to use a VoronoiMesh to define a TogglerBar or SetterBar type ...
7
votes
2answers
73 views

Avoid clipping label in IntervalSlider?

For custom appearances IntervalSlider seems to clip on the right side: ...
1
vote
0answers
23 views

Holding and dragging mouse to select multiple buttons/cells

Is it possible to create a TogglerBar-type object in which several buttons can be selected/deselected simply by holding the mouse's left-click button and dragging ...
15
votes
2answers
1k views

How to write a drag-n-drop reorderable gui?

Most modern GUI building libraries (e.g. cocoa) support this basic operation in tables or lists: reordering items with a mouse. For example, the drag-and-drop of items in a MacOS finder or app window: ...
1
vote
1answer
34 views

Aligning Conditional Controls in Manipulate

Consider the following code ...
1
vote
1answer
69 views
1
vote
2answers
115 views

Import files from a directory choose via Manipulate

I thought I write a super-simple program to import all (Excel)files from a directory a user can choose> ...
1
vote
1answer
69 views

Aligning Checkboxes in Manipulate

Consider the following code ...
3
votes
1answer
78 views

A button that creates a cell and evaluates it

Short version: PasteButton will paste its contents at the input cursor. I am looking to create a similar button that will paste something into a new cell and ...
2
votes
1answer
150 views
7
votes
2answers
127 views

How to change colour of TogglerBar

Consider the following code ...
5
votes
1answer
103 views

Multiple buttons in a Manipulate: how do I get a good layout?

Consider the following code ...
4
votes
1answer
69 views

Avoiding jiggle in palettes

I have a palette containing a Grid with dynamics. As it runs it jiggles horizontally. Here's a minimal example: ...
2
votes
1answer
45 views

Yet more on Manipulate[] - Formated Input

Suppose I have something like Manipulate[Plot[Sin[n x], {x, -Pi, Pi}], {n, 20, "Frequency"}] with a manual input field but I want to accept inputs like ...
1
vote
0answers
76 views

How to make a palette look exactly like a MacOS window?

Is there anyway to style a pallete so that it looks like a native window: ...
1
vote
1answer
81 views

How to get ListAnimate to click at each step?

It would be nice if, at each step in ListAnimate, there could be a clicking sound to draw attention to the new step. I hope to use the single click sound sample ...
0
votes
1answer
38 views

Interrupt a fit/minimization without interrupting overall evaluation

I have not tried programming this myself yet, so I do not have any example code. Mostly, I am looking for advice on whether I am going to be on the right track if I try something. Imagine a ...
3
votes
0answers
60 views

Large Dynamic expressions and responsive UI's

I have a ListLinePlot with 40,000 points. When it's displayed on-screen the input fields are not responsive (text appears slowly well after the user is done typing)....
2
votes
3answers
100 views

How can I make interdependent Checkboxes?

Consider the following code, where I have a list of variables, each with different specified units. In my real case, these lists are not fixed, hence the surrounding Dynamic and the general definition ...
6
votes
3answers
68 views

How to create a button that deletes a character?

I am creating a template that can be used on a touch-screen to input data into an InputField. Following the example from the Basic Math Assistant palette, the ...
14
votes
0answers
220 views

Dynamic is significantly faster and more responsive with LinkSnooper

I noticed an absolutely bizarre behavior of Dynamic. A simple dynamic module with SynchronousUpdating -> False is ...
1
vote
1answer
46 views

Dynamic not updating InputField

I'm trying to do some interactive fitting of data using an arbitrary number of the same function (a Gaussian in this case). This means that I also have an arbitrary number of variables and constraints....
4
votes
1answer
66 views

Dynamic InputField with syntax highlighting?

I'm trying to create a notebook where a user can enter a Mathematica expression, and its syntax is analyzed (number of tokens, compressed size, etc.). Trying this answer, ...
1
vote
1answer
38 views

Using Switch inside Dynamic with variable number of conditions

I'm trying to create some code that plots a variable number of Gaussians, and allows me to control their parameters using Locators. One locator at the top controls $...
0
votes
1answer
43 views

How do I evaluate “If” statement inside PlotLabel? [closed]

I have an experimental function that is dependent on x and y [f(x,y)=Sin(ax/by)]. I am trying to make a 3D plot of f using the manipulate function so that I can easily input measured values of ...
2
votes
1answer
62 views

How do I make a dynamic nested menu with the MorUI package?

I hope you can help me. I want to make a nested dynamic menu and I used the package MoreUI made by Kuba as a reference Question. My problem is that I want to add tasks such as: ...
10
votes
0answers
117 views

'Visibility' of Dynamics in TabView with respect to SynchronousUpdating

Bug introduced in 11 or earlier and persisting through 12.0.0 CASE:4076464 Example 1 ...
6
votes
0answers
51 views

Graphics Primitive Selector

Goal and motivation I want to build something that would intuitively work like: Graphics @ PaneSelector[{True -> something, False -> {}}, Dynamic @ show] ...
3
votes
2answers
202 views

Can one optimize AutomaticNumbering feature?

If one wants to use the automatic numbering feature of Mathematica, he has to make tags for cells of the type he wants to be referenced to. Then, as soon as he needs to make a reference to the tagged ...
1
vote
1answer
63 views

Menu object in a notebook that will print text in a new cell

I would like to get an output text when I select every option of popup menu, the input below print me the option but outside the cell displaying panel generated with Manipulate. I have been trying ...
3
votes
2answers
260 views

How to create a button that adds InputFields when clicked?

I would like to create a button 'ADD' that creates a new InputField each time the user clicks it. I have tried something like this so far: ...
1
vote
1answer
33 views

Access system selection colour

On some operating systems it is possible to customize selection colours and other GUI colours. I have set yellow for mine: Is it possible to retrieve this colour in Mathematica, so that it can be ...
6
votes
4answers
172 views

Dynamic Linkage of LocatorPane and InputField

How do I get the InputField to coordinate with the LocatorPane so that a change in each control changes the other to be in agreement? It would be nice if the function was self-contained and was ...
2
votes
0answers
53 views

Problem with PopupMenu: Its values don't update dynamically

I have a problem with PopupMenu inside DynamicModule, its values don't update dynamically as they supposed to. The example below ...
5
votes
1answer
54 views

IntervalSlider and updating function specification

IntervalSlider seems to ignore Dynamic's second argument: ...
19
votes
3answers
551 views

Usage Examples for DynamicWrapper

I am looking for practical uses of the function DynamicWrapper . I read documentation and know whatever it says. I would appreciate a clear example of a useful ...
3
votes
3answers
109 views

How can I make Graphics objects clickable?

I have created a list (listA) that specifies disks based on color, center point, and radius: ...
5
votes
1answer
138 views

Context menu in CDF Player

Using Style with the option ContextMenu or AttachedCell it is possible to create context ...
0
votes
0answers
70 views

Creating a GUI for a classifier

I developed the following code which is suitable for cloud deployment. However, in order to avoid the problems of the cloud, I would like to create an user interface that runs in a Mathematica ...
2
votes
1answer
66 views

Slider controls not showing in CDF deployed to wolfram cloud

When I run my CDF from CDFPlayer or Mathematica I see all additional controls (fast forward, play, pause, etc) when Appearance->"Open" is usede.g.: ...
1
vote
0answers
60 views

Multipage FormFunction “Required” FormObject broken with “FileName” interpreter

Multipage FormFunction does not validate FormObjects with "FileName" interpreter if the field is left blank. Minimal example <...
7
votes
3answers
371 views

Self-referential list or table of buttons

How could one create a table or list of buttons, such that clicking on a button removes the button itself from the list?
2
votes
0answers
43 views

Loading previous saved variables into DynamicModule

I have a GUI, built inside a DynamicModule. I would like to be able to load previous set options and values, changing the values that are currently set within the DynamicModule, not the global ...
4
votes
1answer
107 views

How to make TabView Background option work

At least in Windows the example below creates a TabView where the selected tab is basically indistinguishable. This problem has been there for years. Is this problem solvable in Windows? How? <...
5
votes
0answers
68 views

How to prevent the message: Not enough memory to display a cell

While running a single-cell GUI application that repeatedly changes and refreshes its content I got this message: There was not enough memory to display a cell... I found in this old MathGroup thread ...
2
votes
1answer
63 views

Restricting access to certain tabs on TabView

I'm using TabView as my base for an image analysis GUI for a collaborator to use. I'd like to restrict moving onto the next tab until the preceding tab has been ...
28
votes
1answer
595 views

Minesweeper: How to Dynamic a lot of graphics with high-speed?

Recently I've implemented Minesweeper in Mathematica. ...
4
votes
1answer
60 views

InputField of size that fits the content

I'd like to have an InputField that adjusts its size to the content. I can't make ImageSize->{All, All} or anything similar ...
4
votes
2answers
58 views

Updating/ disabling certain slider values dynamically in Manipulate

I am struggling with Manipulate dynamic updating. I would like to have an image containing two points which can both be moved in real time to any location on the ...