MathGroup Archive 2008

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Background and Frame in Panels


This may approximate what you want.

Panel[
 Framed["xxx",
  FrameStyle -> LightBlue,
  FrameMargins -> {{5, 5}, {12, 12}},
  Background -> LightBlue],
 "Title",
 BaseStyle -> {FontSize -> 20},
 FrameMargins -> 0]


Bob Hanlon

---- David Park <djmpark at comcast.net> wrote: 

=============
I always wondered why it wasn't easier to set a Background color for a 
Panel. It is possible with the following construction, but then we lose the 
Black frame.

Panel["xxx", "Title",
 BaseStyle -> {FontSize -> 20}]

Panel["xxx", "Title",
 BaseStyle -> {FontSize -> 20,
   PanelBoxOptions -> {Background -> LightBlue}}]

Is there any simple way to get the Frame back?

Why shouldn't Frame, FrameStyle and Background be direct options for Panel? 
Why is only FrameMargins an option?

-- 
David Park
djmpark at comcast.net
http://home.comcast.net/~djmpark/






  • Prev by Date: Histogram and BoxWhiskers Plot
  • Next by Date: Re: minimizing the absolute value of a complex number
  • Previous by thread: Background and Frame in Panels
  • Next by thread: Mathematica and F#