Tag Info

Hot answers tagged

2

Rough approach: Tooltip resources are stored in FileNameJoin[{ $InstallationDirectory, "SystemFiles", "FrontEnd", "TextResources", "ToolTip.tr"}] In order to not mess with installation directory you can copy this file to $UserBaseDirectory/SystemFiles... and replace labels you want. For example: @@resource ToolTipCut Cut (replace this line ...


2

Edit I've updated my answer entirely since the updated question First Issue As detailed in the documentation for Initialization, this expression is not evaluated until after the content of the DynamicModule has been evaluated and not until "the construct is first displayed". This requires that any Initialization variable must be wrapped in Dynamic to be ...


1

As Fred has suggested, Initialization is the way to go, and here is a minimal example: DynamicModule[{answer, answers = Range@10, order}, Column[{ "Pick 1:", Dynamic[RadioButtonBar[Dynamic@answer, answers[[order]]], TrackedSymbols :> {order}] }] , Initialization :> ( order = RandomSample@Range@Length@answers; ), ...


1

My solution uses SetterBar with the items framed. {SetterBar[Dynamic[x], {"Play" -> Framed[Rotate["\[FilledUpTriangle]", -\[Pi]/2]], "Stop" -> Framed@"\[FilledSquare]"}, BaseStyle -> {FontSize -> 20}], Dynamic@Switch[x, "Play", Style["Play", Green], "Stop", Style["Stop", Red]]} It is pretty close. I'm certain you can tweak the font ...


1

Turned out it was easy to replicate the buttons from Play: $playView=ToExpression@GraphicsBox[ TagBox[{ {GrayLevel[0.9], RectangleBox[{5, -158}, {29, -135}]}, {GrayLevel[0.3], PolygonBox[NCache[{{13, -153}, {13, -140}, {21, Rational[-293, 2]}, {13, -153}}, {{13, -153}, {13, -140}, {21, -146.5}, {13, -153}}]]}, ...



Only top voted, non community-wiki answers of a minimum length are eligible