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 ...
user avatar
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 / ...
user avatar
  • 132k
25 votes
Accepted

UI performance with large image data

A lot can be tweaked, but it is hardly ever straightforward: ...
user avatar
  • 132k
24 votes

Creating "detached" plots

If you are serious about using this extensively, consider making a function based on CreateDocument... Here is one way to pursue Szabolcs's line of thought. What ...
user avatar
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. ...
user avatar
24 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 ...
user avatar
  • 264k
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 ...
user avatar
21 votes
Accepted

What is FrontEnd`AttachedCell?

Intro One day I was playing with Developer` package and found DateSetter which uses some kind of floating elements that I found ...
user avatar
  • 132k
21 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 ...
user avatar
  • 23.9k
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. <...
user avatar
  • 27.1k
18 votes

Creating "detached" plots

You can always create a new notebook and put things in it. If you are serious about using this extensively, consider making a function based on CreateDocument that ...
user avatar
  • 225k
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 ...
user avatar
  • 7,299
17 votes

Button action monitored with progress bar

OK, I guess I found something myself while trying to circumvent RunScheduledTask. ...
user avatar
  • 111k
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 ...
user avatar
  • 132k
17 votes
Accepted

PerformanceGoal option ignored in V11.1

The quick fix is to use Block: ...
user avatar
  • 132k
17 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 ...
user avatar
  • 132k
16 votes

Button action monitored with progress bar

I'm not sure if this is exactly what you need but this is what I've recently done to inform the user about ongoing calculation. Usage ...
user avatar
  • 132k
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 ...
user avatar
  • 132k
16 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. ...
user avatar
  • 132k
16 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 ...
user avatar
  • 132k
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 ...
user avatar
  • 12.4k
15 votes
Accepted

Clickable graph

You are almost there but VertexDelete[graph, n] or e.g. SetProperty[graph, spec] won't affect ...
user avatar
  • 132k
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 ...
user avatar
  • 23.1k
12 votes

How to get a list of available appearance/styles/Methods?

I decided to create a repository of usually undocumented lists (or just a links to similar topics) of available options: AppearanceElements for Manipulate and friends MouseAppearance styles All Font ...
12 votes
Accepted

How to set focus of a dialog window?

After István Zachar's points, I was investigating Input definitions to learn more. It seams that 2 years later WRI changed approach from ...
user avatar
  • 132k
12 votes
Accepted

How to customize the MathematicaClosingDialog.nb?

It turned out that the MathematicaClosingDialog.nb is a nice example for a graphical user interface that solely uses the FrontEnd MathKernel. On the downside, one has to deal with low-level code. ...
user avatar
  • 27.1k
12 votes

Working with DynamicModule: Tracking the progress of Initialization

By default, DynamicModule uses SynchronousInitialization -> True. This causes the initialization to be performed on the ...
user avatar
  • 67k
12 votes
Accepted

How-to generate a set of random points in a dynamic region

I would suggest using the second argument of Dynamic: ...
user avatar
  • 68.8k
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 ...
user avatar
  • 132k
11 votes
Accepted

Full documentation for AppearanceElements

Update 2: Found a few more and started to document which elements apply to which controls. The total number of elements is now 27 (or 29 if you include All and <...

Only top scored, non community-wiki answers of a minimum length are eligible