Panel

Panel[expr]

displays as a panel containing expr.

Panel[expr,title]

gives the panel the specified title.

Panel[expr,title,pos]

places title at a position specified by pos.

Panel[expr,{title1,title2,},{pos1,}]

places titlei at position posi.

Panel[]

displays an empty panel.

Details and Options

  • Deploy[Panel[expr]] produces a deployed version, in which elements such as sliders and buttons are active, but general editing and selection is disabled.
  • Panel by default displays expr in "Panel" style, which typically uses the system panel font.
  • Possible forms for the posi are:
  • sidecentered on the specified side
    {side,align}on the specified side with the specified alignment
  • Possible forms for side include Bottom, Left, Top, Right.
  • Possible forms for align include Center, Left, Right, Bottom, Top.
  • The following options can be given:
  • Alignment {Automatic,Automatic}how to align elements in the panel
    AppearanceAutomaticthe overall appearance of the panel
    BackgroundAutomaticpanel background color
    BaselinePosition Automatichow to align with a surrounding text baseline
    BaseStyle{}base style specifications for the panel
    ContentPaddingTruewhether to shrink the margins tightly around the contents
    EnabledAutomaticwhether the panel is enabled, or grayed out
    FrameMargins Automaticmargins inside the frame of the panel
    ImageMargins 0margins around the image of the displayed panel
    ImageSize Automaticthe overall image size of the displayed panel
    LabelStyle{}style specifications for labels
    RotateLabelFalsewhether to rotate left and right labels
    SpacingsAutomatichorizontal and vertical label spacings
  • Typical possible settings for the Appearance option include "DialogBox", "Frameless", and "Palette".
  • The settings for BaseStyle and LabelStyle are appended to the default styles typically given by the "Panel" and "PanelLabel" styles in the current stylesheet.

Examples

open allclose all

Basic Examples  (2)

Create a panel:

A panel with a title:

Scope  (3)

Put any expression in a panel:

Put panels in any expression:

A panel with titles on several sides:

Options  (6)

Alignment  (1)

Align expressions within the panel:

BaselinePosition  (1)

Align with surrounding text:

FrameMargins  (1)

Add margins within the panel:

ImageMargins  (1)

Add margins outside the panel:

ImageSize  (2)

Specify the overall image size:

Use ImageSize to force line breaking at a certain width:

Applications  (3)

Flip between a digital and an analog clock:

Use Panel to accentuate the title and control area:

Define a graphic representing the predator vs. prey differential equation:

Use Panel to accentuate the title and control area:

Properties & Relations  (1)

The Manipulate construct uses Panel:

Neat Examples  (1)

Wolfram Research (2007), Panel, Wolfram Language function, https://reference.wolfram.com/language/ref/Panel.html (updated 2010).

Text

Wolfram Research (2007), Panel, Wolfram Language function, https://reference.wolfram.com/language/ref/Panel.html (updated 2010).

CMS

Wolfram Language. 2007. "Panel." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2010. https://reference.wolfram.com/language/ref/Panel.html.

APA

Wolfram Language. (2007). Panel. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/Panel.html

BibTeX

@misc{reference.wolfram_2024_panel, author="Wolfram Research", title="{Panel}", year="2010", howpublished="\url{https://reference.wolfram.com/language/ref/Panel.html}", note=[Accessed: 21-November-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_panel, organization={Wolfram Research}, title={Panel}, year={2010}, url={https://reference.wolfram.com/language/ref/Panel.html}, note=[Accessed: 21-November-2024 ]}