Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #8631
| From | David Bailey <dave@removedbailey.co.uk> |
|---|---|
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | Re: PopupWindow Problem |
| Date | 2012-02-20 07:44 +0000 |
| Organization | Steven M. Christensen and Associates, Inc and MathTensor, Inc. |
| Message-ID | <jhstk9$nfv$1@smc.vnet.net> (permalink) |
| 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
Back to comp.soft-sys.math.mathematica | Previous | Next — Previous in thread | Find similar | Unroll thread
PopupWindow Problem Don <donabc@comcast.net> - 2012-02-18 11:30 +0000 Re: PopupWindow Problem A Retey <awnl@gmx-topmail.de> - 2012-02-19 11:28 +0000 Re: PopupWindow Problem David Bailey <dave@removedbailey.co.uk> - 2012-02-20 07:44 +0000
csiph-web