MathGroup Archive 2010

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

Search the Archive

Re: syntax-aware selection in palette notebook

  • To: mathgroup at smc.vnet.net
  • Subject: [mg112133] Re: syntax-aware selection in palette notebook
  • From: Murray Eisenberg <murray at math.umass.edu>
  • Date: Wed, 1 Sep 2010 06:28:09 -0400 (EDT)

Yes, of course that's what one wants to do. Unfortunately, as my 
original message stated, I did _not_ have the source for the palette, 
just the resulting palette itself.

On 8/31/2010 4:15 AM, Arnoud Buzing wrote:
> Not sure if this answers your question, but here are a few tips that
> might be useful when working with palettes:
>
> 1. Use CreatePalette[expr] to generate palettes:
>
> cp[] := CreatePalette[Button["Create Palette", cp[]]]
>
> cp[]
>
> That way you have access to the code to generate a palette and you can
> modify that to make changes to your palette.
>
>
> 2. Under the 'Palettes' menu, there is a 'Generate Notebook from
> Palette'. After using this on a (selected) palette, you can then
> look at the underlying cell expression with the Cell ->  Show Expression
> menu item.
>
>
> 3. Assign the palette notebook object to a variable like so:
>
> nb = cp[]
>
> And then traverse the notebook expression to the BoxData and call
> MakeExpression on it:
>
> MakeExpression[NotebookGet[nb][[1, 1, 1]], StandardForm] // FullForm
>
>
>
> --
> Arnoud
>
>
>
>
> On 8/22/10 7:10 AM, Murray Eisenberg wrote:
>> If I have a palette notebook already created, how can I open it in a way
>> that I (1) see the underlying expressions; and (2) can select in a
>> syntax-aware manner, just like you can with input expressions in an
>> ordinary notebook?
>>
>> Is there some way in Mathematica itself?
>>
>> In Workbench?  If so, how do you open the palette notebook there that way?
>>
>

-- 
Murray Eisenberg                     murray at math.umass.edu
Mathematics & Statistics Dept.
Lederle Graduate Research Tower      phone 413 549-1020 (H)
University of Massachusetts                413 545-2859 (W)
710 North Pleasant Street            fax   413 545-1801
Amherst, MA 01003-9305


  • Prev by Date: 2 dimensional engineering problem
  • Next by Date: Re: Weighted graphs with sum of weights determining vertex placement?
  • Previous by thread: Re: 2 dimensional engineering problem
  • Next by thread: Re: syntax-aware selection in palette notebook