Scrolling the WebGadget
Posted: Sat Jul 20, 2019 11:58 pm
I have a webgadget load a weather map, and a timer is used to wait for it to load.
I have it scroll x 150, works
Then a delay just so I can watch and make sure it's working (will be removed)
Then it scrolls y 250, works, but now the x is back at 0
I have reversed x and y, and the last one always sets the other to 0. What am I doing wrong?
I have it scroll x 150, works
Then a delay just so I can watch and make sure it's working (will be removed)
Then it scrolls y 250, works, but now the x is back at 0
Code: Select all
;Wait for weather to finish
If event = #PB_Event_Timer And EventTimer() = 1
SetGadgetAttribute(WeatherWindow,#PB_Web_ScrollX,150)
Delay(1000)
SetGadgetAttribute(WeatherWindow,#PB_Web_ScrollY,250)
RemoveWindowTimer(0,1) ;Remove timer as it's no longer needed, or wanted, like your momma
EndIfI have reversed x and y, and the last one always sets the other to 0. What am I doing wrong?