# How to make the docked cell and the navigation toolbar in the Slide Show?

I have a notebook with a docked cell displaying a banner with some graphics. When I convert this notebook to the Slide Show the banner is nicely displayed on each slide. But the Navigation Toolbar is not visible, apparently covered by my docked cell. How to display both, the Navigation Toolbar and my graphical banner in the Slide Show?

-
there may be sufficient information here (mathematica.stackexchange.com/questions/7458/…) to help you out. – Mike Honeychurch Oct 14 '12 at 23:21
By the way, Marek, welcome to Mathematica.SE! Please consider registering your account so that any upvotes you get on this question are added to those you might get on future questions and answers. That way, over time you will be able to do more on the site (post graphics, edit things, etc). – Verbeia Oct 15 '12 at 2:51
@Mike thanks! I knew that one can dock a few cells but I could not find how to call for this SlideShowToolbar. Now I have found it! It is given by FEPrivateFrontEndResource["FEExpressions", "SlideshowToolbar"] So my problem is solved. – Marek Pfutzner Oct 15 '12 at 21:40
Marek, please consider posting that solution as an answer to your own question. – Mr.Wizard Oct 16 '12 at 15:35

Here's a version which uses Inherited to pull the slide show's docked cell in. Unfortunately, there's a bug when Inherited references an empty value where it shows some needless whitespace. So this version uses Dynamic to detect the ScreenStyleEnvironment and switch its behavior accordingly.

With[{mycell = Cell["Boo!", "DockedCell"]},
nb = NotebookCreate[ScreenStyleEnvironment -> "SlideShow",
DockedCells ->
Dynamic[If[
CurrentValue[EvaluationNotebook[], ScreenStyleEnvironment] ===
"SlideShow", {Inherited, mycell}, mycell]]]]


If you want your cell to precede the slideshow's docked cell instead, just flip the order of Inherited and mycell in the list. If you switch to the Working environment, then only your cell will show up.

-
I note that this bug in Inherited does not appear to be fixed? Also, rather than using nested If's, how could you use Switch instead? All my attempts fail... – TheDoctor May 6 at 5:03
@TheDoctor strange indeed! Also keep in mind that Dynamic` in this solution is affected by similar bug: mathematica.stackexchange.com/q/61659/5478. :( So it fires everytime you move the window. – Kuba May 9 at 0:05