30
votes
Accepted
Zoom in on a 2D graph
You can do this using Show and PlotRange which can be used in combination with graphs. To determine the full ...
30
votes
Zoom in on a 2D graph
This is a prototype, it can not handle Text Inset and some more complicated directives efficiently but I don't have time / ...

Kuba♦
- 136k
25
votes
Accepted
Programming the fiver game
In this case I don't know how to post something helpful without providing full code so I'll just do that and hope this wasn't homework. My emphasis is on clarity (hopefully) rather than brevity or ...
25
votes
Accepted
UI performance with large image data
A lot can be tweaked, but it is hardly ever straightforward:
...

Kuba♦
- 136k
24
votes
If I have a very large Popup Menu list how can I make that searchable?
I have finished a project where widgets like this have been useful so I thought I would share. By combining InputField and PopupMenu a searchable popup selection table can be created.
...
23
votes
Accepted
How to write a drag-n-drop reorderable gui?
Here is a very crude first implementation (code at the bottom):
(note that the updated version is called as `dragDropList[Dynamic@l)
Some notes:
The black box serves both as insertion marker and as ...
21
votes
Accepted
What is FrontEnd`AttachCell?
##Intro
One day I was playing with Developer` package and found DateSetter which uses some kind of floating elements that I ...

Kuba♦
- 136k
21
votes
Accepted
Minesweeper: How to Dynamic a lot of graphics with high-speed?
The issue with such multicontroller dynamic interfaces is that one usually wants to store the state of all controllers in one variable for convenience (e.g. store status of position ...
19
votes
Accepted
Creating a simple Dock Cell that Fades In when Cursor Hover Over It
Edit: Fading overlay window
In order to get a top dock element with real transparency, one can create a window that overlays the current notebook window and adjusts its position together with it.
<...
19
votes
How to write a drag-n-drop reorderable gui?
I once approached this. I never finished it so let me know if you face any issues:
ResourceFunction["GitHubInstall"]["kubapod", "mgui"]
<< MGUI`
And here ...

Kuba♦
- 136k
18
votes
Accepted
Visually permute rows of a matrix via mouse dragging
EDIT: converted the use of explicit Hold wrappers to appropriate HoldAll and HoldFirst ...
17
votes
Accepted
Working with DynamicModule: SetDelayed + OwnValues
J. Fultz' answer indicates that it is not a bug but a feature which needs better documentation.
Get a habit of defining your procedures with [], e.g. ...

Kuba♦
- 136k
17
votes
Accepted
Allow multiple GUI elements to react dynamically to interaction with a single element
n = 120;
names = Range[n];
pts = AssociationThread[names -> N@CirclePoints[n]];
edges = RandomSample[Subsets[names, {2}], 250];
There are two reasons why ...

Kuba♦
- 136k
17
votes
Accepted
17
votes
Accepted
Animating a Potential Function (eigenfunctions of Laplace's equation)
The fix is to move Animate outside of LocatorPane, but let's go couple of steps further:
I turned Eigenvalues procedure into a ...

Kuba♦
- 136k
16
votes
If I have a very large Popup Menu list how can I make that searchable?
Based on undocumented FrontEnd`AttachCell:
What is FrontEnd`AttachedCell?
And ...

Kuba♦
- 136k
15
votes
Accepted
Internal DynamicModule steals scope of external DynamicModule
This answer builds on @AlbertRetey's answer where, in the comments, you wanted some guidance as to how Wolfram creates robust controls.
Think very carefully about the division of labor between the FE ...
15
votes
Accepted
Clickable graph
You are almost there but VertexDelete[graph, n] or e.g. SetProperty[graph, spec] won't affect ...

Kuba♦
- 136k
13
votes
Button action monitored with progress bar
Building on Kubas code here is an alternative which solves some (minor) problems: it will not leave behind scheduled tasks when the abort button is used, it works equaly well when the Alt+. shortcut ...
13
votes
How is the zoom tooltip in the "Coordinates Tool" implemented?
Here's a proof-of-concept demonstration of how to build your own tooltip with reasonable performance:
...
12
votes
Guidelines for planning custom GUI in Mathematica
Things to keep in mind when developing complex GUI in Mathematica:
Wolfram System general issues:
Styles management/inheritance system (StyleSheets and friend)
It is complicated, full of exceptions ...
Community wiki
12
votes
Accepted
How-to generate a set of random points in a dynamic region
I would suggest using the second argument of Dynamic:
...
12
votes
Accepted
How to create Right-Click ActionMenu at mouse position?
Both solutions are undocumented but I don't think they will go away. Menu/MenuItem are used internally for a long time and ...

Kuba♦
- 136k
11
votes
Accepted
Activity indicators for slow Dynamic expressions?
An adaption of this answer for an ActionMenu and to your styling:
...
11
votes
Accepted
How to make a dynamic nested menu?
Here's beta version, basic functionality is delivered. I have to polish it but probably I won't have time for that this year. It has to be packed into self contained module and styling options have to ...

Kuba♦
- 136k
11
votes
Accepted
How to see a code preview (in Experimental`Explore[] or related GUI)
Quick fix is to use e.g. Inactivate and friends:
...

Kuba♦
- 136k
11
votes
Accepted
11
votes
How can I get a FileNameSetter-like dialog inside my own custom dialog?
Not perfect but a good start.
Openers expand/collapse trees but it does not affect the preview pane. Clicking on the directory name does.
...

Kuba♦
- 136k
11
votes
Accepted
VoronoiMesh as a TogglerBar
Here are implementations for a MeshTogglerBar and MeshSetterBar based on my answer here (code below). Both implementations use <...
11
votes
Accepted
Using graphics primitives as buttons
It might be easier to build your own button using EventHandler and CurrentValue:
...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
gui-construction × 619dynamic × 215
manipulate × 159
front-end × 97
graphics × 39
button × 36
inputfield × 27
notebooks × 25
plotting × 24
scheduling × 21
bugs × 19
programming × 19
performance-tuning × 18
interface × 18
eventhandler × 18
list-manipulation × 16
output-formatting × 16
style × 16
user-interface × 16
dialog-window × 16
evaluation × 15
interactive × 14
customization × 13
grid-layouts × 13
cells × 11