The main question is in the title. Here are subtopics I'd like to focus on:
Is there a tutorial related to them anywhere in documentation?
How can I check what are current values of e.g.
ButtonBoxOptions
?Are documentation pages for specific symbols the only source of this information?
How are they related to what
CurrentValue[{StyleDefinitions, "Input", ButtonBoxOptions}]
gives:{ButtonBoxOptionsBaseStyle -> "GenericButton", ...
What is their place and advantages in styles resolving scheme?
I suspect they are applied somewhere around
MakeBoxes
but is this documented somewhere?They also allow to style boxes collectively (with limitations), is that all?
Can analogous options for custom boxes be created or it is not meant to be accessible from user side?
Do they work consistently or are they full of exceptions?
I failed to understand why
PanelBox
case works butTemplateBox
doesn't:Style[ Panel[1], PanelBoxOptions -> {Background -> Red} (*works well*) ] Style[ TraditionalForm @ Binomial[a, b], TemplateBoxOptions -> {Tooltip -> None} (*fails, tooltip is there*) ]
So it seems
TemplateBox
escapes a standard resolution scheme. What I intuitively get but I would like to have this explained.
TemplateBoxOptions -> {Tooltip -> None}
is the defaultTooltip
option value.Style[TraditionalForm@Binomial[a, b], TemplateBoxOptions -> {TooltipDelay -> Infinity}]
orStyle[TraditionalForm@Binomial[a, b], TemplateBoxOptions -> {TooltipStyle -> Directive[Red, Bold]}]
do work as expected. $\endgroup$Binomial's
template the default isTooltip -> Automatic
, defined inCore.nb
and it overwrites myTooltip->None
even though I've put that setting on expression level. $\endgroup$Tooltip -> None
is the default forTemplateBoxOptions
and changing other option settings forTemplateBoxOptions
do have the expected effect. Therefore my expectation for usingTemplateBoxOptions -> {Tooltip -> None}
was that it doesn't have any effect, but now I understand that you expected it to change the settings inherited from the "Binomial's template". $\endgroup$"Binomial"
style in Core.nb withTemplateBoxOptions
. $\endgroup$