Mathematica Asked by DORA on November 25, 2020
I try to use horizontalgauge in Manipulate as following:
Manipulate[
Graphics[Disk[]],
HorizontalGauge[Dynamic[x], {0, 100}]
]
but it didn’t work, but if I wrap the gauge with Row[] then it works, can anyone explain why it works like this?
Manipulate[
Graphics[Disk[]],
Row@{HorizontalGauge[Dynamic[x], {0, 100}]}
]
In Manipulate >> Details and Options
allowed forms of the second argument are listed:
So HorizontalGauge[Dynamic[x], {0,10}]
(or, for that matter, Slider[Dynamic[x], {0, 10}]
or Checkbox[Dynamic[z]]
or InputField[Dynamic[w]]
etc.) is not allowed in the second (or later) argument.
The highlighted row of the list is elaborated on as
So using Row @ {HorizontalGauge[...]
, Style @ HorizontalGauge[...]
, Text @ HorizontalGauge[...]
etc. do work.
Correct answer by kglr on November 25, 2020
Get help from others!
Recent Questions
Recent Answers
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP