Mathematica 9 is now available
Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2008

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

Search the Archive

Re: Background and Frame in Panels

  • To: mathgroup at smc.vnet.net
  • Subject: [mg91510] Re: [mg91478] Background and Frame in Panels
  • From: Bob Hanlon <hanlonr at cox.net>
  • Date: Sun, 24 Aug 2008 07:07:50 -0400 (EDT)
  • Reply-to: hanlonr at cox.net

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#