Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #7900
| From | John Fultz <jfultz@wolfram.com> |
|---|---|
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | Re: Nested Manipulate copies to clipboard as "grey box" |
| Date | 2012-01-17 08:31 +0000 |
| Organization | Steven M. Christensen and Associates, Inc and MathTensor, Inc. |
| Message-ID | <jf3bld$n9i$1@smc.vnet.net> (permalink) |
If you convert the Manipulate to literal first, you can get the copy to work.
Here's the code to convert the current selection in the InputNotebook[] to
literal (taken from the code in MenuSetup.tr for Evaluation->Convert to
Literal):
FrontEndExecute[{FrontEnd`NotebookDynamicToLiteral[
FrontEnd`NotebookSelection[FrontEnd`InputNotebook[]]]}]
Warning...this is a destructive operation, so you'll probably want to perform
this on a copy of the Manipulate cell.
Yes, the fact that you need to do this is a bug, but I can't guarantee it'll be
fixed promptly.
Sincerely,
John Fultz
jfultz@wolfram.com
User Interface Group
Wolfram Research, Inc.
On Sat, 14 Jan 2012 17:06:15 -0500 (EST), Szabolcs Horv=E1t wrote:
>
> It seems a nested Manipulate will not copy correctly as a bitmap.
>
> Here's a toy example:
>
> Manipulate[
> Manipulate[
> Plot[Sin[k x]^n, {x, 0, 10}], {k, 1, 5}], {n, {1, 2, 3, 4}}]
>
> Evaluate this, select the output cell, then choose Edit -> Copy As ->
> Bitmap. I believe this is only available on Windows. Then paste the
> bitmap back to the notebook to view it.
>
> The inner Manipulate's contents will show as a grey box.
>
> Is there a workaround for this?
>
> Motivation: I am using
> FrontEndTokenExecute[FrontEnd`SelectionNotebook[], "CopySpecial", "MGF"]
> to obtain a rasterized version of the selection in the notebook. I have
> not found any other reliable way to rasterize the notebook selection
> without changing the way it looks.
Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread
Re: Nested Manipulate copies to clipboard as "grey box" John Fultz <jfultz@wolfram.com> - 2012-01-17 08:31 +0000
csiph-web