Questions tagged [gui-construction]

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

Constructing a custom graphical user interface is easy with Mathematica. It involves control objects like Slider, Button, Pane or Manipulate objects, gauges (like AngularGauge, VerticalGauge, etc.), static GUI elements like Panel or Frame and the structuring and layout of these building blocks (using the Grid family). Questions about how to build small interactive softwares should use this tag.

Questions about general dynamic interaction and content (like Manipulate) should use the tag or . Questions about control objects and their properties should use the tag . Questions dealing specifically with dialog notebooks and windows may use the tag .

Useful links:

620 questions
14
votes
2 answers

Adjusting placement of control objects in a row within a panel

My minimal example Panel[Column[{ Row[{"Board size: ", InputField[Dynamic[max], Number, FieldSize -> 3], Button["Clear Board"]}], "A graphic object which is large enough"}]] evaluates to Since I have a large graphic object underneath the…
Michael Wijaya
  • 2,197
  • 16
  • 29
13
votes
2 answers

Basic questions about GUI

I have created the following simple GUI: {num10, num20, path0, date0} = DialogInput[ {num1 = 100, num2 = 10, path = "a path", date = "11/11/2012"}, Column[{ "First number", InputField[Dynamic[num1], Number], "Second number",…
John
  • 4,361
  • 1
  • 26
  • 41
6
votes
1 answer

Why does this construct give no output control object?

Control@{h[3], 0, 1} It is puzzling. (The motive for h[i] is to build a list of controls.)
User18
  • 882
  • 4
  • 12
5
votes
2 answers

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 the textfield with clicking the Submit button,…
baheca
  • 51
  • 1
5
votes
0 answers

How can I change cursor style in InputField?

I want to make an InputField with a horizontal cursor, like this: Note that the blinking cursor should be horizontal and not the mouse pointer! Nevertheless, text input should still be horizontal and not vertical. The code below shows an InputField…
subbu
  • 2,304
  • 1
  • 13
  • 32
5
votes
1 answer

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? Panel[TabView[{"x" -> "Guess which tab is…
Ariel Sepulveda
  • 1,687
  • 10
  • 20
4
votes
1 answer

C# Tree view similar

Is it possible in Mathematica to add a GUI like the Tree GUI element in Visual Studio 2010 C# Windows Forms? I want to have the similar feel
TraceKira
  • 363
  • 1
  • 8
4
votes
0 answers

GUI Maker? Is there a perhaps drag and drop GUI maker for Mma?

IDE's like Borland, Eclipse, and others have ways of making GUI's. Drag and drop is usually the way of it. Then one puts the variables together and links up everything. Mma seems to handle (at least so far) in the GUI development department like…
EdgyTector
  • 147
  • 3
4
votes
4 answers

How can I make controls have Button-like behaviour?

The Button control is very easy to understand Button["Press Me", Print["Pressed"]] I press the button, I execute the function. No Dynamic tom-foolery (I'll be honest, I struggle with Dynamics when they get above a certain level of complexity). I…
WalkingRandomly
  • 4,107
  • 1
  • 20
  • 36
4
votes
1 answer

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 simple "frame" with my graphic output sitting…
Adrian
  • 41
  • 2
4
votes
2 answers

How to make ActionMenu's menu appear with one mouseclick and disappear with a second?

How do I make ActionMenu's menu appear with one mouseclick of the button and disappear with a second consecutive click on the same button? I would like to be able to click on an ActionMenu in order to inspect the action labels and then click on the…
rfrasier
  • 592
  • 3
  • 12
3
votes
1 answer

Right aligning a button in a dialog

What is the best way to right align a button in a dialog window, regardless of the window's WindowSize? Here is a resizable window to test on: CreateDialog[ Column[{"Here's some text text text text text text text", ChoiceButtons[]}], …
Szabolcs
  • 234,956
  • 30
  • 623
  • 1,263
3
votes
1 answer

Pretty ClockGauge: how to remove Second needle?

I have the following ClockGauge: ClockGauge["Sun 2 Oct 2016 00:30", GaugeLabels -> Placed[ "DateTimeShort", Below], LabelStyle -> Bold, PlotRangePadding -> Scaled[.15]] which is displayed as: How can I remove the Second needle? It really looks…
32u-nd
  • 963
  • 4
  • 10
3
votes
0 answers

Text in Popupmenu that cannot be chosen

Is it possible to make a popupmenu where there is text inserted into the options which you cannot choose. For instance: a popup menu with animals devided into two categories. Birds: duck, eagle, chicken. Mammals: dog, cat, cow. The strings "Birds"…
Saida
  • 31
  • 1
3
votes
1 answer

Changing the contents of a TextCell according to the user input of another TextCell

Is it possible to change TextCells in the following code in that way, that the TextCell "profile starts at x =" changes to "profile starts at y =" and at the same time the TextCell "measurement starts at y =" changes to "measurements starts at x ="…
Harald
  • 1,573
  • 1
  • 11
  • 15
1
2 3