05-08-2016, 08:02 AM
OK, I'm looking to incorporate this in my app TinyTim (what a useful little test mule that is turning out to be). The first confusing bit was that I got "XXX is not of type View" errors. Turns out that I was trying to create the spinner and immediately hide it.
That's not how it works, apparently. new_spinner just sets up the variables. The spinner doesn't exist and therefore cannot be hidden until you've run display_spinner. Just mentioning that for the sake of the documentation.
Right, that out of the way, I am now getting segmentation fault errors, i.e. the OS itself does not like what yab is doing. I suspect that is because I'm trying to be all clever and artistic and superimposing the spinner on top of a button. Will keep on experimenting and reporting here.
Code:
new_spinner(70,140,0,210, "DuringCurl", "MainWindow")
hide_spinner("DuringCurl")
That's not how it works, apparently. new_spinner just sets up the variables. The spinner doesn't exist and therefore cannot be hidden until you've run display_spinner. Just mentioning that for the sake of the documentation.
Right, that out of the way, I am now getting segmentation fault errors, i.e. the OS itself does not like what yab is doing. I suspect that is because I'm trying to be all clever and artistic and superimposing the spinner on top of a button. Will keep on experimenting and reporting here.