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
1answer
33 views

Manipulate: variable localization inside nested `Control`

Below is a piece of my code I have trouble with: ...
3
votes
1answer
48 views

How Do I Create a Separate Window for my output WITHOUT the usual Windows Title Bar and Scrolling bar

I want to display some output in a separate Window but WITHOUT all the usual Windows accoutrements. I don't want a title bar, I don't want a menu of options, I don't want a scroll bars - I just want a ...
0
votes
0answers
23 views

Dynamically fixing a Control within Manipulate

Consider the following code Manipulate[x, Control[{{y, 0, "y"}, {1, 0}}], Control[{{x, 0, "x"}, {1, 0}, Enabled -> Dynamic[y == 1]}]] where ...
2
votes
0answers
31 views

Is there some way to make Dynamic track only a part of a variable [duplicate]

I often run into a situation like the one exemplified by the code below. The basic idea is to use a single DynamicModule variable as a list or association of values ...
0
votes
0answers
12 views

Problem displaying a window from a menu

I want to display a splash screen directly, but also via a menu. This is a minimal example ...
5
votes
0answers
51 views

InputField with carriage return in cloud notebooks?

I'm looking for a way of constructing a multi-line InputField in a cloud notebook. That is, a text field that supports the following five behaviors: The 'Enter' ...
2
votes
0answers
63 views

How to do field completion in FormFunction?

The control InputField has the option FieldCompletionFunction for showing optional autocompletions (updates a dropdown as you ...
4
votes
2answers
64 views

How to style the frame of the a button?

For certain Appearance options of Button you can control the Background, but how does one ...
7
votes
2answers
115 views

How to pause an Animator with Mouseover?

I would like my Animator to pause when the mouse is not over it. For example, here it continues to update even when it's not moused-over: ...
2
votes
2answers
44 views

Vanishing function and Manipulate

Within Manipulate, I want to vanish certain controls if other controls satisfy a specific condition. The simplest case is to consider two checkboxes, ...
2
votes
0answers
63 views

Interactive Graph Construction

I'm interested in constructing an interactive GUI graph generator, where I can add and delete vertices and edges. I'm aware of this question, and this is but a quick follow-up to this answer. I would ...
0
votes
0answers
24 views

Splitting a SetterBar to multiple lines, wrapping at a given page margin?

I have 4 SetterBars linked to the same variable, and representing 593 choices in four categories. How might I get a sensical output that wraps to window or screen or some arbitrary margin? ...
3
votes
1answer
64 views

Automatically generating and labelling controls in Manipulate

Consider the following code ...
1
vote
1answer
47 views

Inactivate Controls within Manipulate

Given a certain Control object (checkbox, for example) within a Manipulate environment, my goal is to define another control ...
0
votes
0answers
14 views

Flipping diagonals in a regular polygon

Say, I have a triangulation of an octagon: ...
1
vote
1answer
32 views

Extracting the output of FlipView and then updating

Say I have a triangulation of an octagon: ...
2
votes
2answers
70 views

Changing a diagonal inside a regular $n$-gon when clicked

I am trying to understand the use of Dynamic, DynamicModule, EventHandler, etc. I created an ...
8
votes
1answer
161 views

How to make a Locator3D/LocatorSphere?

On Making a LocatorSphere: Okay so I'm trying to realize a Locator3D-esque functionality for Mathematica. Something like a <...
0
votes
0answers
32 views

Mouse wheel scrolling doesn't work in Pane inside ExpressionCell

Essentially what the title says - Consider the following example: ...
8
votes
2answers
85 views

Avoid clipping label in IntervalSlider?

For custom appearances IntervalSlider seems to clip on the right side: ...
18
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: ...
15
votes
3answers
598 views

VoronoiMesh as a TogglerBar

Is it possible to use a VoronoiMesh to define a TogglerBar or SetterBar type ...
1
vote
1answer
42 views

Aligning Conditional Controls in Manipulate

Consider the following code ...
1
vote
1answer
81 views

Dynamic Delimiter in Manipulate

Consider the following ...
1
vote
1answer
81 views

Aligning Checkboxes in Manipulate

Consider the following code ...
3
votes
1answer
91 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 ...
5
votes
1answer
123 views

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

Consider the following code ...
7
votes
2answers
134 views

How to change colour of TogglerBar

Consider the following code ...
4
votes
1answer
70 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
47 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 ...
2
votes
0answers
77 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
93 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 ...
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)....
0
votes
1answer
40 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
3answers
110 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 ...
1
vote
1answer
54 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
78 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
40 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
49 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
71 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: ...
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] ...
1
vote
1answer
73 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
277 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
35 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 ...
2
votes
0answers
70 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 ...
6
votes
4answers
192 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 ...
5
votes
1answer
58 views

IntervalSlider and updating function specification

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

How can I make Graphics objects clickable?

I have created a list (listA) that specifies disks based on color, center point, and radius: ...
0
votes
0answers
73 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 ...
5
votes
1answer
140 views

Context menu in CDF Player

Using Style with the option ContextMenu or AttachedCell it is possible to create context ...

1
2 3 4 5
12