This is documentation for Mathematica 8, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.1)

Panel

Updated In 8 Graphic
Panel[expr]
displays as a panel containing expr.
Panel
gives the panel the specified title.
Panel
places title at a position specified by pos.
Panel
places at position .
Panel
displays an empty panel.
  • Deploy 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 style, which typically uses the system panel font.
  • Possible forms for the are:
sidecentered on the specified side
{side,align}on the specified side with the specified alignment
  • 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
BaselinePositionAutomatichow 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
FrameMarginsAutomaticmargins inside the frame of the panel
ImageMargins0margins around the image of the displayed panel
ImageSizeAutomaticthe 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 , , and .
  • The settings for BaseStyle and LabelStyle are appended to the default styles typically given by the and styles in the current stylesheet.
Create a panel:
A panel with a title:
Create a panel:
In[1]:=
Click for copyable input
Out[1]=
In[2]:=
Click for copyable input
Out[2]=
 
A panel with a title:
In[1]:=
Click for copyable input
Out[1]=
Put any expression in a panel:
Put panels in any expression:
A panel with titles on several sides:
Align expressions within the panel:
Align with surrounding text:
Add margins within the panel:
Add margins outside the panel:
Specify the overall image size:
Use ImageSize to force line breaking at a certain width:
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:
New in 6 | Last modified in 8