MathGroup Archive 2007

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

Search the Archive

Re: Dynamic palette of open notebooks

  • To: mathgroup at
  • Subject: [mg82928] Re: Dynamic palette of open notebooks
  • From: David Reiss <dbreiss at>
  • Date: Sat, 3 Nov 2007 03:32:44 -0500 (EST)
  • References: <fgenb0$fq1$>

The following is an example of how one might go about doing this.
However, I word of warning: this is a buggy example.  This is not
because of the code itself, but because of a notebook redrawing bug in
Mathematica (at least on the Mac).  The bug is that when one opens and
closes notebooks, the palette that this code has created will update
in a way that obscures the top of its notebook window in a way that
the operating system close button will be "below" an un-deleted

This bug has been duly reported to Wolfram Research and is in the

I created this bit of code a while back thinking that a generalization
of it might be good as a replacement--or an adjunct--for the All
Notebooks Palette

in A WorkLife Framework

Here is the code:

notebooksPalette[] :=
 DynamicModule[{pagewidth, allNotebooks, names, buttons}, pagewidth =
  allNotebooks = Dynamic[Refresh[Notebooks[], UpdateInterval -> 1]];
  names = Dynamic[
    CurrentValue[#, "NotebookFileName"] & /@ First[allNotebooks]];
  buttons =
     Button[Style[#[[1]], 10, Bold, Darker@Blue],
         Appearance -> "Palette", Alignment -> Left,
        ImageSize -> {pagewidth, All}] & /@
      Transpose[{First[names], First[allNotebooks]}]]];
   PaletteNotebook[buttons, PageWidth -> pagewidth, WindowSize ->

I hope this helps!

And, of course you should download the fully functional trial version
of A WorkLife Framework from

A WorkLife FrameWork
E x t e n d i n g MATHEMATICA's Reach...

On Nov 2, 4:32 am, buml... at wrote:
> Howdy,
> I often have several notebooks open full screen on a second monitor.
> It would be nice to have some sort of taskbar in mathematica to switch
> between notebooks at a click (and indeed just see what I have open).
> Now it's easy enough to make a palette of open notebooks, but I can't
> figure out how to make it dynamic (in version 6.0).  That is, if I
> open or close a notebook, the palette changes automatically to reflect
> this.  Can this be done?  Does anybody have any suggestions?

  • Prev by Date: Re: Simplifying polynomial and rounding problems
  • Next by Date: Re: Converting notebooks to use Mathematica Player
  • Previous by thread: Re: Dynamic palette of open notebooks
  • Next by thread: Re: Dynamic palette of open notebooks