In a sub that is running for a long time, I call DoEvents. During one of these events, the user can click on an imageview (iv), and the iv_Click routine branches to another sub that presents the user with a InputDialog (nd), asking for a number. I then want to display this number on the screen.
Yet it seems that the result of
then is always -3 (abort), as log messages show.
When I click iv while the long-running sub is not active, I can enter new numbers without problems.
I have the vague idea that touching the imageview iv might fire not only one click event, but more than one, which then would be outside the InputDialog. But the InputDialog does not disappear, so I can't really account logically for this behavior. Should touches be buffered (as I recall reading in another forum message by someone who had gestures buffered while drawing something), is there a way to clear the buffer?
Anyhow, I feel that this is not quite right a notion of what is going on.
Have you encountered similar problems? Found solutions?
Thank you.
Regards,
Yet it seems that the result of
B4X:
nd.InputType = nd.INPUT_TYPE_NUMBERS
nd.PasswordMode = False
nd.Input = ""
result = nd.Show(nmessage, ntitle, npositive, "", "", Null)
then is always -3 (abort), as log messages show.
When I click iv while the long-running sub is not active, I can enter new numbers without problems.
I have the vague idea that touching the imageview iv might fire not only one click event, but more than one, which then would be outside the InputDialog. But the InputDialog does not disappear, so I can't really account logically for this behavior. Should touches be buffered (as I recall reading in another forum message by someone who had gestures buffered while drawing something), is there a way to clear the buffer?
Anyhow, I feel that this is not quite right a notion of what is going on.
Have you encountered similar problems? Found solutions?
Thank you.
Regards,