Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2012

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

Search the Archive

Re: PopupWindow Problem

  • To: mathgroup at smc.vnet.net
  • Subject: [mg125050] Re: PopupWindow Problem
  • From: David Bailey <dave at removedbailey.co.uk>
  • Date: Mon, 20 Feb 2012 02:43:35 -0500 (EST)
  • Delivered-to: l-mathgroup@mail-archive0.wolfram.com
  • References: <jho24f$5t1$1@smc.vnet.net>

On 18/02/2012 11:30, Don wrote:

>
> The simple, intuitive solution,
>
> thisContent =  StringJoin[Style["Max. No. on Graph", Bold], " This option means... "]
>
Well it is only intuitive if you don't realise that Mathematica strings 
don't carry style information in them - so Style["Max. No. on Graph", 
Bold] can't be a string - which is why the diagnostic complains about 
the first argument to StringJoin.

You can discover the type of object this is thus?

Style["Max. No. on Graph", Bold] // Head

You will get what you want by using:

Row[{Style["Max. No. on Graph", Bold], " This option means... "}]

> does not work.
>
>
> thisContent = {Style["Max. No. on Graph", Bold], "  This option means ... "};
> PopupWindow["xxx",  thisContent, Background->LightYellow]
>
> and
>
> thisContent = {Style["Max. No. on Graph", Bold], "  This option means ... "};
> thisContent = Apply[Sequence, thisContent];
> PopupWindow["xxx",  thisContent, Background->LightYellow]
>
> do not work either.
>
> How can I do this?
As you have discovered, if you don't learn some of the basics of 
Mathematica, there are an almost infinite number of 'plausble' ways to 
achieve something - none of which work!

Look at the front page of the documentation centre, and look on the 
toolbar for a book icon. This takes you to a virtual book. It is well 
worth studying sections of this to get a better grasp of Mathematica. As 
with the regular help system, you can cut and paste examples into a 
notebook and modify them - an excellent way to learn!

David Bailey
http://www.dbaileyconsultancy.co.uk






  • Prev by Date: what type of InterpolatingFunction?
  • Next by Date: Re: Interrupt a block
  • Previous by thread: Re: PopupWindow Problem
  • Next by thread: Re: Function Exp[x^2]*Erfc[x]