Notifications
Clear all
[Closed] Spinner getting the object value
Mar 01, 2022 10:45 pm
Hi,
I’m testing a simple spinner to set the height of a box.
How do I make the box height value appear in the spinner?
For example, I have a box with a height of 125cm and when executing the script, I want the value that appears in the spinner box to be the value of 125cm and not “0”.
try (destroydialog spinnertest) catch()
rollout spinnertest "Spinner Test" width:130
(
spinner altura "H:"
range:[0,10000,0]
width:60
type:#integer
align:#center
tooltip: "output height"
on altura changed val do try
(
$.height = altura.value
) catch()
)
createdialog spinnertest
2 Replies