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

MathGroup Archive 2009

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

Search the Archive

Re: "SelectionData" and palettes

  • To: mathgroup at smc.vnet.net
  • Subject: [mg99925] Re: "SelectionData" and palettes
  • From: dh <dh at metrohm.com>
  • Date: Tue, 19 May 2009 06:47:09 -0400 (EDT)
  • References: <guqvcd$a8k$1@smc.vnet.net>


Hi,

NotebookSelection[] will return the selection in the current notebook.

NotebookSelection[nb] gives selection in nb. Look it up in the manual.

Daniel



meitnik wrote:

> With[ {p = ToExpression[CurrentValue[InputNotebook[],

> "SelectionData"]]},

>  PresentTmpls[p]

> 

> I found a similar code fragment on MathGroup. I wanted to use it in my

> palette. However, once the palette is standalone it fails to work;

> otherwise within a current session of a notebook it works fine. Is

> there a more stable way to grab a text selection so it can be used for

> further use in code? Thanks.

> 

> Andrew

> 




  • Prev by Date: Could some one please help
  • Next by Date: Re: problem in expression
  • Previous by thread: Re: Re: "SelectionData" and palettes
  • Next by thread: Re: "SelectionData" and palettes