I can't seem to access a FrameTicks
type option for setting the values of frame ticks on the axes of a Gauge
. Below is an example, how can I change the ticks from seconds to minutes:
Clear[Countdown];
Countdown[sec_] := (RemoveScheduledTask[ScheduledTasks[]];
$countdownTimer = sec;
RunScheduledTask[$countdownTimer--, {1, sec}];
RunScheduledTask[EmitSound[Play[Sin[1000 t^2], {t, 0, 1}]];
CreateDialog[{TextCell[
ToString[sec] <> " seconds complete :) Time up"],
DefaultButton[]}], {sec}];
Dynamic@
HorizontalGauge[$countdownTimer, {sec,
0}, GaugeStyle -> Hue[Rescale[$countdownTimer, {0, sec}, {0, 0.3}]],
GaugeMarkers -> "GlassRectangle", ScaleDivisions -> 10,
ImageSize -> {700}, ScalePadding -> None,
Background -> RGBColor[0, 0, 0, 0]])
orizontalGauge[$countdownTimer/60, {sec, 0}/60, ...]
$\endgroup$Frame->True
you'll see that the gauge ticks/markers are not part of the frame. A horizontal gauge lies along an x axis but those ticks are not used either. Instead the tick marks you see areInset
s. $\endgroup$DynamicModule[]
be used here to better enclose things? $\endgroup$