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
11
votes
1answer
180 views

When are EvaluationNotebook[] and ButtonNotebook[] different?

I am looking for a concrete code example where EvaluationNotebook[] and ButtonNotebook[] will return different results. The ...
8
votes
1answer
120 views

How can I defer the loading of a PopupView control until it is used?

Background: I have several PopupViews of which the loadtime adds to the startup time of a program. To improve the perceived performance I want to defer the loading ...
131
votes
3answers
17k views

How to manipulate 2D plots?

When it comes to visual analysis, large datasets or data with intricate internal details often makes plotting in 2D useless, as the outcome is either just a fraction of the full dataset, or no details ...
4
votes
1answer
211 views

What it is the best way to enforce that only one CreateDialog window can be created?

Background. See question Moving controls from Manipulate to a Palette ( or similar GUI object ). As suggested in the answer to this question I use a CreateDialog window to group and handle controls ...
8
votes
2answers
339 views

Moving controls from Manipulate to a Palette ( or similar GUI object )

Consider the following snippet as a reference. ...
16
votes
4answers
495 views

In InputField, how to prevent Shift-Return from generating a new cell?

When running the following in a notebook (not a deployed CDF file), it can sometimes be annoying that accidentally pressing Shift-Return breaks out of the user ...
15
votes
3answers
399 views

How to create a notebook element that can replace itself?

I would like to create a notebook element that can replace itself. Here's an example to illustrate: ...
8
votes
1answer
338 views

LocatorPane, selecting multiple Locators

Consider the following snippet ...
6
votes
0answers
145 views

How to create a floating image with no window background [duplicate]

Possible Duplicate: What is the most effective way to setup a Notebook with transparent background but solid contents? When MMA 8 starts, a floating image of spikey is shown. As you can see the ...
4
votes
2answers
849 views

Question about making TabView remember what tab to open

Background: Consider the following ( for the purpose of illustrating this question ) simplified, but working snippet of code. ...
5
votes
2answers
622 views

How to save data to a variable by clicking a button, using Widget Panel

In Mathematica I am trying to implement algorithm, for which I would like to have user friendly interface, I have managed to create Panel using Widgets, but when I am trying to provide the value of ...
13
votes
3answers
817 views

Interdependent controls in Manipulate [duplicate]

Possible Duplicate: How to create interrelated sliders? locking a value when manipulating variables I need to create a Manipulate with two control parameters ...
8
votes
2answers
397 views

Strange behavior of CreateDialog's WindowSize option

Compare the two dialog windows, created by the same code except in the first WindowSize has a value while I omit it in the second one. Note, that ...
36
votes
4answers
2k views

Question about collections of custom GUI controls for Mathematica

Background: I have only recently begun programming GUIs in Mathematica, so I have a continuous need for custom controls. I needed a scrollable list control and with the help of Google I found a ...
7
votes
1answer
225 views

Why do images in a PopupMenu sometimes make a program load sluggishly?

In a demonstration, I would like to display a PopupMenu with a list of small PDF images, each weighing in at approximately 50k. The code of interest is below: ...
13
votes
1answer
334 views

How to make an unremovable modal window?

Is there any way to securely stick a notebook window (e.g. a dialog) on screen that it cannot be closed/removed/hidden by any of the standard OS shortcuts, like AltF4 or AltTab under Windows? The ...
2
votes
2answers
520 views

Transparent background of content in a dialog window

Why dialogs created with CreateDialog cannot correctly show content with transparent background? The following example generates a plot, with white background, ...
6
votes
1answer
2k views

How to make a dynamic stopwatch?

For some experiments I need some basic timer function. I tried various methods, and neither of them are fully satisfactory. What I need is a button, that starts/stops a timer, resets timer with each ...
6
votes
1answer
443 views

Dialog crashes Mathematica

I have some dialog windows in a GUI of which one regularly crashes the kernel. I managed to focus on this particular piece of code, though I don't really know what causes the crash: ...
12
votes
2answers
400 views

Adjusting placement of control objects in a row within a panel

My minimal example ...
8
votes
2answers
209 views

Make the selection become the button you click

Let's assume I want a button that, when you click it, get the cell that contains it selected. This approach won't work, it selects the cell containg the selection previous to the click. ...
8
votes
2answers
811 views

Detecting double click events

Is there a way to detect double click events? I did not find anything on the doc page of EventHandler. Use case: I want to re-implement the ...
32
votes
3answers
3k views

Generating graphs interactively (GUI)

I want to create graphs interactively using a GUI. I thought of using a ClickPane[] environment. The code I have (in part borrowed from the Documentation) works ...
22
votes
3answers
1k views

How to set focus of a dialog window?

I have a dialog, which, when pops up, requests input from the user. How can I set the window up that the focus is on the InputField of the new window (i.e. the ...
17
votes
1answer
579 views

How to create interrelated sliders?

Say I want a slider that controls the value of $x$ and another slider that controls the value of $2x$, how would I go about it?
19
votes
3answers
540 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 ...