4
$\begingroup$

I wanted to know how this "Saving to the Wolfram Cloud" message works?

enter image description here

It's useful because it hovers above the notebook's content even when scrolling and I'd like to change the text and reuse it for my own purposes.

$\endgroup$
2
  • $\begingroup$ DockedCells? StatusArea? WindowStatusarea? Those all came to mind when you described this, but I don't think any of them achieve it immediately. But they may help :) $\endgroup$
    – ktm
    Commented Dec 28, 2016 at 21:01
  • $\begingroup$ @Kuba only for a second while saving the notebook to the cloud $\endgroup$
    – user5601
    Commented Jan 4, 2017 at 0:05

1 Answer 1

5
$\begingroup$

That is almost certainly an AttachedCell, an undocumented feature which proves to be very useful.

MathLink`CallFrontEnd[FrontEnd`AttachCell[
  EvaluationNotebook[],
  Cell[BoxData@ToBoxes@Panel@DateString[]],
  Bottom, Bottom,
  "ClosingActions" -> {"OutsideMouseClick"}]
]

enter image description here

This will attatch a cell at the bottom of the notebook. You can leave ClosingActions empty if you want it to stay there. Or change it but do not put there "ParentChanged" item. This will crash the front end.

More info about syntax:

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.