I have a function which produces a large object I would like to hide. Formatting is of course an option but I'm hoping for something a little more meaningful using raster graphics and Tooltip.
Also, Format doesn't allow the object to be copied and pasted while retaining the internals of the object whereas MakeBoxes does.
Here is some sample code that produces what I want without the Tooltip.
f /: MakeBoxes[dat : f[args_], fmt_] :=
TagBox[ToBoxes[Rasterize@RandomImage[1, {100, 100}]],
InterpretTemplate[f[args] &], Editable -> False, Selectable -> True,
SelectWithContents -> True]
f[1]
This produces the raster graphic with a Tooltip but the graphic is now editable/resizable.
f /: MakeBoxes[dat : f[args_], fmt_] :=
TagBox[ToBoxes[
Tooltip[Rasterize@RandomImage[1, {100, 100}], "tooltip"]],
InterpretTemplate[f[args] &], Editable -> False, Selectable -> True,
SelectWithContents -> True]
f[1]
Is there a way to have both a Tooltip and the non-editable raster graphic?

InterpretTemplate. Yikes! – Sjoerd C. de Vries Mar 18 '12 at 20:45