Is it possible to only visit the routine "test()" once for each click instead of twice.
And is it possible to make the blue background behind the numbers to disappear.
Code: Select all
OpenWindow(0, 0, 0, 140, 70, "SpinGadget", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
#spin=1
SpinGadget (#spin, 20, 20, 100, 25, 0, 1000, #PB_Spin_Numeric)
SetGadgetState (#spin, 555)
Procedure test()
Debug GetGadgetState(#spin)
EndProcedure
BindGadgetEvent(#spin, @test())
Repeat
Event = WaitWindowEvent()
Until Event = #PB_Event_CloseWindow


